commit 8d40d9322f567ba5720ac807168232ae3c5ee0e4
Author: Jason Merrill <jason@redhat.com>
Date: Fri Feb 21 00:39:25 2014 -0500
PR c++/60248
* mangle.c (mangle_decl): Don't make an alias for a TYPE_DECL.
@@ -3485,6 +3485,7 @@ mangle_decl (const tree decl)
if (G.need_abi_warning
/* Don't do this for a fake symbol we aren't going to emit anyway. */
+ && TREE_CODE (decl) != TYPE_DECL
&& !DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P (decl)
&& !DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P (decl))
{
new file mode 100644
@@ -0,0 +1,11 @@
+// PR c++/60248
+// { dg-options "-std=c++11 -g -fabi-version=2" }
+
+template<int...> struct A {};
+
+template<> struct A<0>
+{
+ typedef enum { e } B;
+};
+
+A<0> a;