public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51373] New: ICE for static pointer to member initialized in-class
@ 2011-12-01  4:36 pubby.8 at gmail dot com
  2011-12-01  9:19 ` [Bug c++/51373] [C++0x] " paolo.carlini at oracle dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pubby.8 at gmail dot com @ 2011-12-01  4:36 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51373
           Summary: ICE for static pointer to member initialized in-class
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pubby.8@gmail.com


gcc version 4.7.0 20111112 (experimental) (GCC) 

Two seemingly relate ICEs when dealing with pointer to member:

struct foo {
    int a = 42;
    static int foo::*b = &foo::a;
};
internal compiler error: Segmentation fault

struct foo {
    int a = 42;
    static int foo::*b;
    auto& c = b;
};
internal compiler error: in unify_one_argument, at cp/pt.c:15008

Not sure if the code is valid.


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

end of thread, other threads:[~2014-06-06 12:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-01  4:36 [Bug c++/51373] New: ICE for static pointer to member initialized in-class pubby.8 at gmail dot com
2011-12-01  9:19 ` [Bug c++/51373] [C++0x] " paolo.carlini at oracle dot com
2011-12-03 19:18 ` daniel.kruegler at googlemail dot com
2011-12-03 19:34 ` daniel.kruegler at googlemail dot com
2014-06-06 11:25 ` vl.still at gmail dot com
2014-06-06 12:14 ` vl.still at gmail 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).