* g++.dg/template/nontype23.C: New.

From-SVN: r173586
This commit is contained in:
Jason Merrill 2011-05-09 14:03:02 -04:00 committed by Jason Merrill
parent 1c682d060b
commit 14d0f7d244
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-05-09 Jason Merrill <jason@redhat.com>
* g++.dg/template/nontype23.C: New.
2001-05-07 Fabien Chêne <fabien@gcc.gnu.org>
PR c++/48859
* g++.dg/init/pr48859.C: New.

View File

@ -0,0 +1,9 @@
// PR c++/48936
template <bool C> int foo (void);
template <class T> struct S
{
static const unsigned int a = sizeof (T);
enum { c = sizeof (foo <(a == 0)> ()) };
};
S<int> x;