]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/semantics.c
re PR c++/34267 (ICE applying __decltype to name of template class)
authorJakub Jelinek <jakub@redhat.com>
Thu, 29 Nov 2007 21:04:04 +0000 (22:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 29 Nov 2007 21:04:04 +0000 (22:04 +0100)
commit7a547b936c01964cfcc9543db0d86c008f7269da
tree6d76a7a037f9bac1f6c110f41cfb1978b264a6a1
parent10650fbb88871139f242597b1f081041868c43f6
re PR c++/34267 (ICE applying __decltype to name of template class)

PR c++/34267
PR c++/34268
* parser.c (cp_parser_decltype): Don't call finish_id_expression
on ~type.
* semantics.c (finish_decltype_type): Issue error on types, TYPE_DECLs
and ~type early.

* g++.dg/cpp0x/decltype7.C: New test.
* g++.dg/cpp0x/decltype8.C: New test.

From-SVN: r130519
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/decltype7.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/decltype8.C [new file with mode: 0644]