re PR c++/8164 (ICE when using different const expressions as template parameter)
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
This commit is contained in:
parent
a6b602cafd
commit
87ca53f644
@ -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.
|
||||
|
||||
|
11
gcc/testsuite/g++.dg/template/nontype2.C
Normal file
11
gcc/testsuite/g++.dg/template/nontype2.C
Normal file
@ -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;
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user