PR c++/8164
* decl.c (duplicate_decls): Avoid mangling names unnecessarily.
PR c++/8164
* g++.dg/template/nontype2.C: New test.
PR c++/10558
* g++.dg/parse/template8.C: New test.
From-SVN: r69229
2003-07-11 Mark Mitchell <mark@codesourcery.com>
+ PR c++/8164
+ * g++.dg/template/nontype2.C: New test.
+
PR c++/10558
* g++.dg/parse/template8.C: New test.
--- /dev/null
+template <bool> struct A {};
+
+template <bool> struct B
+{
+ void foo()
+ {
+ const int i=0;
+ typedef A< i<=1 > C;
+ typedef A< i<=2 > C;
+ }
+};