PR c++/27821
* decl.c (grokdeclarator): Return error_mark_node
on invalid uses of the scope resolution operator.
From-SVN: r114989
+2006-06-25 Lee Millward <lee.millward@gmail.com>
+
+ PR c++/27821
+ * decl.c (grokdeclarator): Return error_mark_node on
+ invalid uses of the scope resolution operator.
+
2006-06-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28112
{
/* Something like struct S { int N::j; }; */
error ("invalid use of %<::%>");
- decl = NULL_TREE;
+ return error_mark_node;
}
else if (TREE_CODE (type) == FUNCTION_TYPE)
{
+2006-06-25 Lee Millward <lee.millward@gmail.com>
+
+ PR c++/27821
+ * g++.dg/template/error22.C: New test.
+
2006-06-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28112
--- /dev/null
+//PR c++/27821
+
+struct A
+{
+ template<void (A::*)()> struct B {};
+ void ::foo(); // { dg-error "invalid use" }
+ B<&A::foo> b; // { dg-error "incomplete type|template argument" }
+};
+