This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52282] [C++0x] ICE / confused by earlier errors with decltype/constexpr
- From: "andyg1001 at hotmail dot co.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Feb 2012 17:42:59 +0000
- Subject: [Bug c++/52282] [C++0x] ICE / confused by earlier errors with decltype/constexpr
- Auto-submitted: auto-generated
- References: <bug-52282-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52282
--- Comment #2 from andyg1001 at hotmail dot co.uk 2012-02-24 17:42:59 UTC ---
Created attachment 26743
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26743
test-case for decltype ICE / incorrect evaluation of constexpr
The attached test-case source expands on my previous bug report and shows where
the ICE occurs with decltype but also where the compiler fails to detect that a
value is actually constexpr (lines marked "incorrect evaluation"). What is
interesting is that the incorrect evaluation does not occur for comparable use
inside main().
GCC version: g++ (GCC) 4.7.0 20120224 (experimental)