summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/regress/error-recovery1.C
blob: 2094d3e3ebe110764c77553c5cb00cf54cd01fdd (plain)
1
2
3
4
5
6
7
8
9
// PR c++/48212
// { dg-options -std=c++0x }

template < bool > void
foo ()
{
  const bool b =;		// { dg-error "" }
  foo < b > ();			// { dg-error "constant expression" }
};