public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54744] New: internal compiler error: Segmentation fault, by dependent base, member typedef and ctor-initializer
@ 2012-09-29  9:10 ai.azuma at gmail dot com
  2012-09-29 11:05 ` [Bug c++/54744] " paolo.carlini at oracle dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: ai.azuma at gmail dot com @ 2012-09-29  9:10 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54744
           Summary: internal compiler error: Segmentation fault, by
                    dependent base, member typedef and ctor-initializer
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ai.azuma@gmail.com


Created attachment 28298
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28298
Output of -v option and preprocessed file

The following valid code causes segfault with GCC 4.8.0 20120916 and GCC 4.7.3
20120922.

///////////////////////////////////////////////////////////
template <typename T>
struct base {
  typedef base base_type;
};

template <typename T>
struct derived : base<T> {
  typedef typename derived::base_type::base_type base_type;
  derived() : base_type() {}
};
///////////////////////////////////////////////////////////

Note that the above code compiles successfully with GCC 4.6.4 20120921.


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

end of thread, other threads:[~2012-12-06 20:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-29  9:10 [Bug c++/54744] New: internal compiler error: Segmentation fault, by dependent base, member typedef and ctor-initializer ai.azuma at gmail dot com
2012-09-29 11:05 ` [Bug c++/54744] " paolo.carlini at oracle dot com
2012-09-29 12:59 ` jakub at gcc dot gnu.org
2012-09-29 18:25 ` [Bug c++/54744] [4.7/4.8 Regression] " paolo.carlini at oracle dot com
2012-11-25 15:55 ` rguenth at gcc dot gnu.org
2012-11-29 11:39 ` paolo.carlini at oracle dot com
2012-12-03 15:45 ` rguenth at gcc dot gnu.org
2012-12-06 15:52 ` jason at gcc dot gnu.org
2012-12-06 20:22 ` jason at gcc dot gnu.org
2012-12-06 20:23 ` jason at gcc dot gnu.org
2012-12-06 20:23 ` jason 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).