[Bug c++/29518] diagnostic on correct code; regression from 3.4.4

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Oct 19 21:55:00 GMT 2006



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-10-19 21:54 -------
Reduced testcase:

template< bool C > int assertion_failed( int);
template< class > 
struct N
{
  static bool const okay = true;
  enum {
    t = sizeof( assertion_failed<okay>( 0))
  };
};
  main()
{
  N<int> n;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29518



More information about the Gcc-bugs mailing list