* parser.c (cp_parser_pseudo_destructor_name): A pseudo-destructor
name is not a declaration.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142015
138bc75d-0d04-0410-961f-
82ee72b054a4
2008-11-19 Jason Merrill <jason@redhat.com>
+ PR c++/37563
+ * parser.c (cp_parser_pseudo_destructor_name): A pseudo-destructor
+ name is not a declaration.
+
PR c++/37256
* pt.c (instantiate_decl): Don't require a definition of
a template that is explicitly instantiated 'extern'.
/*typename_keyword_p=*/false,
/*check_dependency_p=*/true,
/*type_p=*/false,
- /*is_declaration=*/true)
+ /*is_declaration=*/false)
!= NULL_TREE);
/* Now, if we saw a nested-name-specifier, we might be doing the
second production. */
2008-11-19 Jason Merrill <jason@redhat.com>
+ PR c++/37563
+ * g++.dg/template/pseudodtor5.C: New test.
+
PR c++/37256
* g++.dg/cpp0x/extern_template-3.C: New test.
--- /dev/null
+// PR c++/37563
+
+struct A {};
+
+template<int> struct Traits
+{
+ typedef void X;
+};
+
+template<> struct Traits<0>
+{
+ typedef A X;
+};
+
+template<int N> struct B
+{
+ typedef typename Traits<N>::X Y;
+
+ void foo(Y y)
+ {
+ y.Y::A::~A();
+ }
+};