diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-15 18:38:48 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-15 18:38:48 +0000 |
commit | 24011c2ccb201a4af96ff3a8bf2d53ab3dda3920 (patch) | |
tree | 04809c1d4b70c21ce66fa42a22bfa6fb120ad9a7 /gcc/cp/typeck2.c | |
parent | 29c9cffbcafe1ccd486f99edb9ae8cd70db42e6a (diff) |
PR c++/71511 - ICE on decltype scope in declaration.
* typeck2.c (cxx_incomplete_type_diagnostic): Handle DECLTYPE_TYPE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238393 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/typeck2.c')
-rw-r--r-- | gcc/cp/typeck2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index b1206c09a0e..b9dc56d01c3 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -537,6 +537,7 @@ cxx_incomplete_type_diagnostic (location_t loc, const_tree value, break; case TYPENAME_TYPE: + case DECLTYPE_TYPE: emit_diagnostic (diag_kind, loc, 0, "invalid use of dependent type %qT", type); break; |