public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55226] New: [C++11] ICE regression in regard to anonymous unions and constexpr
@ 2012-11-07  7:45 daniel.kruegler at googlemail dot com
  2012-11-07 10:52 ` [Bug c++/55226] [4.8 Regression] " paolo.carlini at oracle dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2012-11-07  7:45 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55226
           Summary: [C++11] ICE regression in regard to anonymous unions
                    and constexpr
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: daniel.kruegler@googlemail.com


The following code gives me now a regressive ICE when switching from my
previous gcc 4.8 (last successfully tested: 4.8.0 20121014 (experimental)) to
gcc 4.8.0 20121104 (experimental) using the compiler flags

-Wall -pedantic -std=c++11

//----------------------
template<class T>
struct optional_data
{
  union {
    unsigned char for_value_init_;
    T value_;
  };

  constexpr optional_data() : for_value_init_() {}
};

struct ncnm
{
  ncnm(ncnm&&) = delete;
  ncnm(const ncnm&) = delete;
};

int main()
{
  optional_data<ncnm> o; // #20
}
//----------------------

"In function 'int main()':|
20|internal compiler error: in gimplify_init_ctor_eval, at gimplify.c:3787|
"

A tentative guess is that this could have been a side-effect of the fix applied
to bug 54922.


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

end of thread, other threads:[~2012-11-07 11:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-07  7:45 [Bug c++/55226] New: [C++11] ICE regression in regard to anonymous unions and constexpr daniel.kruegler at googlemail dot com
2012-11-07 10:52 ` [Bug c++/55226] [4.8 Regression] " paolo.carlini at oracle dot com
2012-11-07 11:16 ` paolo at gcc dot gnu.org
2012-11-07 11:16 ` paolo.carlini at oracle dot com

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