tree.c (mapcar): When dealing with a DECL, use it's constant value, if any.
� * tree.c (mapcar): When dealing with a DECL, use it's constant value, if any. * pt.c (lookup_template_class): Don't mangle the names of template classes whose arguments are unknown. * pt.c (tsubst_expr): Handle GOTO_STMT correctly. From-SVN: r18805
This commit is contained in:
parent
aa09da44c7
commit
9db4940cd6
1 changed files with 22 additions and 0 deletions
22
gcc/testsuite/g++.old-deja/g++.pt/explicit68.C
Normal file
22
gcc/testsuite/g++.old-deja/g++.pt/explicit68.C
Normal file
|
@ -0,0 +1,22 @@
|
|||
template <bool B>
|
||||
struct S
|
||||
{
|
||||
static void g();
|
||||
};
|
||||
|
||||
template <bool B>
|
||||
void g();
|
||||
|
||||
template<unsigned Length>
|
||||
void f()
|
||||
{
|
||||
const bool b = true;
|
||||
g<b>();
|
||||
const bool b1 = (Length == 2);
|
||||
S<b1>::g();
|
||||
}
|
||||
|
||||
void h()
|
||||
{
|
||||
f<3>();
|
||||
}
|
Loading…
Add table
Reference in a new issue