public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53909] New: internal compiler error: in gimplify_init_ctor_eval, at gimplify.c:3560
@ 2012-07-10  3:33 tudorb at fb dot com
  2012-07-10  3:34 ` [Bug c++/53909] " tudorb at fb dot com
  2012-07-10  3:40 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: tudorb at fb dot com @ 2012-07-10  3:33 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53909
           Summary: internal compiler error: in gimplify_init_ctor_eval,
                    at gimplify.c:3560
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tudorb@fb.com


constexpr constructors and multiple inheritance (non-virtual inheritance,
diamond pattern) don't mix; this causes an ICE with gcc 4.6.2 (minimized from
production code):

$ g++ -std=c++0x -g -o Bug Bug.cpp
Bug.cpp: In function ?int main()?:
Bug.cpp:10:19: internal compiler error: in gimplify_init_ctor_eval, at
gimplify.c:3560


struct B { };
struct C1 : B { };
struct C2 : B { };

struct A : C1, C2 {
  constexpr A(int x) { }
};

int main() {
  A a[] = {1, 2, 3};
  return 0;
}


$ g++ --version
g++ (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1)
Copyright (C) 2011 Free Software Foundation, Inc.


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

* [Bug c++/53909] internal compiler error: in gimplify_init_ctor_eval, at gimplify.c:3560
  2012-07-10  3:33 [Bug c++/53909] New: internal compiler error: in gimplify_init_ctor_eval, at gimplify.c:3560 tudorb at fb dot com
@ 2012-07-10  3:34 ` tudorb at fb dot com
  2012-07-10  3:40 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: tudorb at fb dot com @ 2012-07-10  3:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Tudor Bosman <tudorb at fb dot com> 2012-07-10 03:33:51 UTC ---
Appears fixed in gcc 4.7.1.


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

* [Bug c++/53909] internal compiler error: in gimplify_init_ctor_eval, at gimplify.c:3560
  2012-07-10  3:33 [Bug c++/53909] New: internal compiler error: in gimplify_init_ctor_eval, at gimplify.c:3560 tudorb at fb dot com
  2012-07-10  3:34 ` [Bug c++/53909] " tudorb at fb dot com
@ 2012-07-10  3:40 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-07-10  3:40 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-07-10 03:40:23 UTC ---
Two things, first this should have been reported to redhat since they are the
ones which provided you GCC.
Second, you said it seemed fixed in 4.7.1, as C++11 support is experimental
there is no reason to keep this bug opened.  So closing as fixed.


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

end of thread, other threads:[~2012-07-10  3:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10  3:33 [Bug c++/53909] New: internal compiler error: in gimplify_init_ctor_eval, at gimplify.c:3560 tudorb at fb dot com
2012-07-10  3:34 ` [Bug c++/53909] " tudorb at fb dot com
2012-07-10  3:40 ` pinskia at gcc dot gnu.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).