diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-11 08:53:59 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-11 08:53:59 +0000 |
commit | 612fe822e6350f79fa1f37be4df21950092ce45a (patch) | |
tree | 3eb0670521bf7d6156904bac82d7e8c11781316f | |
parent | 2d875e32b2d118aff476ebe83fb2b5d65ed4f9bd (diff) | |
download | gcc-612fe822e6350f79fa1f37be4df21950092ce45a.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69229 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/nontype2.C | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 661f960d775..a43e9335175 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 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. diff --git a/gcc/testsuite/g++.dg/template/nontype2.C b/gcc/testsuite/g++.dg/template/nontype2.C new file mode 100644 index 00000000000..fe7e71537b8 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/nontype2.C @@ -0,0 +1,11 @@ +template <bool> struct A {}; + +template <bool> struct B +{ + void foo() + { + const int i=0; + typedef A< i<=1 > C; + typedef A< i<=2 > C; + } +}; |