public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29518]  New: incorrect "
@ 2006-10-19 21:16 wb at fnal dot gov
  2006-10-19 21:19 ` [Bug c++/29518] " pinskia at gcc dot gnu dot org
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: wb at fnal dot gov @ 2006-10-19 21:16 UTC (permalink / raw)
  To: gcc-bugs

Regression from gcc 3.4.4; under gcc 4.1.1 it produces the diagnostic "error:
'N<int>::okay' is not a valid template argument for type 'bool' because it is a
non-constant expression" -- and I am informed (by gdr) that the bug is still
present in gcc 4.2.0.

The code below makes use of the Boost library; I can also provide the
preprocessed version of the same code, if requested, but it's on the order of
1000 lines long:


#include "boost/mpl/assert.hpp"

template< class T >
  struct N
{
  static  bool const  okay  = true;
  BOOST_MPL_ASSERT_MSG( okay, message_goes_here, (T) );
};

int
  main()
{
  N<int>  n;
}


-- 
           Summary: incorrect "
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wb at fnal dot gov


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


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2007-02-03 20:42 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-19 21:16 [Bug c++/29518] New: incorrect " wb at fnal dot gov
2006-10-19 21:19 ` [Bug c++/29518] " pinskia at gcc dot gnu dot org
2006-10-19 21:23 ` wb at fnal dot gov
2006-10-19 21:27 ` pinskia at gcc dot gnu dot org
2006-10-19 21:32 ` gdr at cs dot tamu dot edu
2006-10-19 21:42 ` [Bug c++/29518] diagnostic on correct code; regression from 3.4.4 pinskia at gcc dot gnu dot org
2006-10-19 21:55 ` pinskia at gcc dot gnu dot org
2006-10-19 21:57 ` gdr at cs dot tamu dot edu
2006-10-19 21:57 ` [Bug c++/29518] [4.0/4.1/4.2 Regression] rejects valid template argument, enums vs templates pinskia at gcc dot gnu dot org
2006-10-19 21:58 ` pinskia at gcc dot gnu dot org
2006-10-19 21:59 ` pinskia at gcc dot gnu dot org
2006-10-20  7:25 ` pinskia at gcc dot gnu dot org
2006-10-20 14:34 ` rguenth at gcc dot gnu dot org
2006-11-01 18:31 ` [Bug c++/29518] [4.0/4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
2006-11-12 11:04 ` news at derived-software dot ltd dot uk
2006-11-12 16:43 ` pinskia at gcc dot gnu dot org
2006-11-13  4:21 ` mmitchel at gcc dot gnu dot org
2006-11-13 17:49 ` mmitchel at gcc dot gnu dot org
2006-11-13 17:50 ` mmitchel at gcc dot gnu dot org
2006-11-13 17:52 ` [Bug c++/29518] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-11-13 18:41 ` mmitchel at gcc dot gnu dot org
2006-11-14  5:00 ` mmitchel at gcc dot gnu dot org
2006-11-14  5:00 ` [Bug c++/29518] [4.0 " mmitchel at gcc dot gnu dot org
2006-11-25  4:32 ` pinskia at gcc dot gnu dot org
2006-12-01  1:09 ` chaoyingfu at gcc dot gnu dot org
2007-02-03 20:42 ` gdr at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).