public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "swestrup at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/48003] New: Regression in Template Constants from 4.5.2 Date: Sun, 06 Mar 2011 12:07:00 -0000 [thread overview] Message-ID: <bug-48003-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48003 Summary: Regression in Template Constants from 4.5.2 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: swestrup@gmail.com The following code compiles cleanly under g++ 4.5.2, but fails to compile under g++ 4.6.0: #include <climits> #include <boost/mpl/int.hpp> boost::mpl::int_<INT_MIN> foo; It produces the errors: /usr/local/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation of ‘mpl_::int_<-0x00000000080000000>’: test_test.cpp:8:27: instantiated from here /usr/local/include/boost/mpl/aux_/integral_wrapper.hpp:73:96: error: ‘2147483647’ is not a valid template argument for type ‘int’ because it is a non-constant expression /usr/local/include/boost/mpl/aux_/integral_wrapper.hpp:73:96: error: overflow in constant expression [-fpermissive] I tested this using Boost 1.46 on a Debian AMD_64 SID system running with a 2.6.36 kernel.
next reply other threads:[~2011-03-06 12:07 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-03-06 12:07 swestrup at gmail dot com [this message] 2011-03-06 12:29 ` [Bug c++/48003] " sefi@s-e-f-i.de 2011-03-06 14:06 ` paolo.carlini at oracle dot com 2011-03-06 14:21 ` redi at gcc dot gnu.org 2011-03-07 10:30 ` [Bug c++/48003] [4.6 Regression] " rguenth at gcc dot gnu.org 2011-03-07 10:42 ` rguenth at gcc dot gnu.org 2011-03-07 13:42 ` redi at gcc dot gnu.org 2011-03-07 14:11 ` rguenth at gcc dot gnu.org 2011-03-08 5:28 ` jason at gcc dot gnu.org 2011-03-08 7:31 ` jakub at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-48003-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).