public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/52282] [C++0x] ICE / confused by earlier errors with decltype/constexpr Date: Fri, 04 May 2012 16:43:00 -0000 [thread overview] Message-ID: <bug-52282-4-p1mDoLR4rA@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-52282-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52282 --- Comment #4 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-05-04 16:42:39 UTC --- (In reply to comment #3) > This ICE still occurs in the release version of gcc 4.7.0. And also in 4.8.0 HEAD btw. > The attached test-case compiles and runs successfully under clang with one > small change as shown in this diff (this doesn't affect the test-case under > gcc): > > --- ice.cpp > +++ ice.cpp > @@ -53,6 +53,7 @@ > static_assert(Z_<int(*)(), &b<10>>::value() == 10, "oops"); // ICE > > constexpr struct C { > + constexpr C() = default; > constexpr int c1() const { return 10; } > static constexpr int c2() { return 10; } > } c; These changes are necessary for any reasonable comparison. It seems to me that we have at least two compiler bugs here. 1) The ICE 2) The incorrect diagnostics of some non-constexpr function. The latter error reminds me very much of bug 52892 where it became clear that gcc can loose constexpr information when typedefs and template parameters are inserted.
next prev parent reply other threads:[~2012-05-04 16:43 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-02-16 15:56 [Bug c++/52282] New: " andyg1001 at hotmail dot co.uk 2012-02-16 19:41 ` [Bug c++/52282] " daniel.kruegler at googlemail dot com 2012-02-24 18:33 ` andyg1001 at hotmail dot co.uk 2012-05-04 16:22 ` andyg1001 at hotmail dot co.uk 2012-05-04 16:43 ` daniel.kruegler at googlemail dot com [this message] 2012-05-04 18:41 ` paolo.carlini at oracle dot com 2012-05-07 10:07 ` paolo.carlini at oracle dot com 2013-05-01 11:48 ` paolo.carlini at oracle dot com 2014-11-17 17:01 ` [Bug c++/52282] [C++0x] rejects-valid issues " jason at gcc dot gnu.org 2014-11-17 19:19 ` jason 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-52282-4-p1mDoLR4rA@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).