2010-08-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/45043
* decl.c (grokdeclarator): Use MAIN_NAME_P only on IDENTIFIER_NODEs.
/testsuite
2010-08-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/45043
* g++.dg/template/crash102.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163655
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-08-30 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/45043
+ * decl.c (grokdeclarator): Use MAIN_NAME_P only on IDENTIFIER_NODEs.
+
2010-08-30 Jakub Jelinek <jakub@redhat.com>
PR middle-end/45423
common. With no options, it is allowed. With -Wreturn-type,
it is a warning. It is only an error with -pedantic-errors. */
is_main = (funcdef_flag
- && dname && MAIN_NAME_P (dname)
+ && dname && TREE_CODE (dname) == IDENTIFIER_NODE
+ && MAIN_NAME_P (dname)
&& ctype == NULL_TREE
&& in_namespace == NULL_TREE
&& current_namespace == global_namespace);
+2010-08-30 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/45043
+ * g++.dg/template/crash102.C: New.
+
2010-08-30 Jakub Jelinek <jakub@redhat.com>
PR middle-end/45423
--- /dev/null
+// PR c++/45043
+
+template < typename > class A;
+template < typename T > A < T >::B::~B () // { dg-error "type" }
+{}