This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29518] diagnostic on correct code; regression from 3.4.4
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Oct 2006 21:57:01 -0000
- Subject: [Bug c++/29518] diagnostic on correct code; regression from 3.4.4
- References: <bug-29518-5078@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from gdr at cs dot tamu dot edu 2006-10-19 21:57 -------
Subject: Re: diagnostic on correct code; regression from
3.4.4
On Thu, 19 Oct 2006, pinskia at gcc dot gnu dot org wrote:
| Reduced testcase:
Very nice.
| template< bool C > int assertion_failed( int);
| template< class >
| struct N
| {
| static bool const okay = true;
| enum {
| t = sizeof( assertion_failed<okay>( 0))
| };
| };
| main()
missing "int".
| {
| N<int> n;
| }
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29518