public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48707] New: [4.6/4.7 Regression] [c++0x] ICE initializing static const int
@ 2011-04-20 20:17 roman at binarylife dot net
  2011-04-21 15:57 ` [Bug c++/48707] " roman at binarylife dot net
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: roman at binarylife dot net @ 2011-04-20 20:17 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6/4.7 Regression] [c++0x] ICE initializing static
                    const int
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: roman@binarylife.net
              Host: x86_64-unknown-linux-gnu
            Target: x86_64-unknown-linux-gnu
             Build: x86_64-unknown-linux-gnu


$ cat test.cc 
struct A {
  static int a();
};

template<typename X>
struct B: A {
  static int const b;
};

template<typename X>
int const B<X>::b=B<X>::a();

$ g++ -c -std=c++0x test.cc
test.cc:11:27: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

end of thread, other threads:[~2011-04-25 21:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-20 20:17 [Bug c++/48707] New: [4.6/4.7 Regression] [c++0x] ICE initializing static const int roman at binarylife dot net
2011-04-21 15:57 ` [Bug c++/48707] " roman at binarylife dot net
2011-04-25 17:14 ` jason at gcc dot gnu.org
2011-04-25 21:53 ` jason at gcc dot gnu.org
2011-04-25 21:54 ` jason at gcc dot gnu.org
2011-04-25 21:55 ` 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).