This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]