public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56243] New: [4.8 regression] ICE in tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6645
@ 2013-02-07 16:13 ppluzhnikov at google dot com
  2013-02-07 18:15 ` [Bug c++/56243] " jakub at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: ppluzhnikov at google dot com @ 2013-02-07 16:13 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56243
           Summary: [4.8 regression] ICE in tree check: expected
                    field_decl, have identifier_node in
                    fixed_type_or_null, at cp/class.c:6645
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ppluzhnikov@google.com


Google ref b/8153611
Looks very similar to PR53816.

Test:

class A
{
    virtual int String ();
};

class F: public A { };

template < typename V > class G
{
    V value;
};

class D
{
    template < int N > void Verify(const int (&p1)[N]) const {
      for (int iter; G < A > *x = 0;)
      {
        F& name = x->value;
        name.String ();
      }
    }
};



ICE with g++ (GCC) 4.8.0 20130205 (experimental).

g++ -c  t.ii  # ok

g++ -c -std=c++11 t.ii
t.ii: In member function ‘void D::Verify(const int (&)[N]) const’:
t.ii:19:22: internal compiler error: tree check: expected field_decl, have
identifier_node in fixed_type_or_null, at cp/class.c:6645
         name.String ();
                      ^
0xc6159a tree_check_failed(tree_node const*, char const*, int, char const*,
...)
    ../../gcc/tree.c:8946
0x5cd853 tree_check
    ../../gcc/tree.h:3669
...


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

end of thread, other threads:[~2013-02-28 20:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07 16:13 [Bug c++/56243] New: [4.8 regression] ICE in tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6645 ppluzhnikov at google dot com
2013-02-07 18:15 ` [Bug c++/56243] " jakub at gcc dot gnu.org
2013-02-07 22:21 ` fabien at gcc dot gnu.org
2013-02-08 15:30 ` rguenth at gcc dot gnu.org
2013-02-22 21:02 ` jason at gcc dot gnu.org
2013-02-23 10:43 ` fabien at gcc dot gnu.org
2013-02-23 22:01 ` fabien at gcc dot gnu.org
2013-02-23 22:02 ` fabien at gcc dot gnu.org
2013-02-23 23:06 ` ppluzhnikov at google dot com
2013-02-25 20:57 ` fabien at gcc dot gnu.org
2013-02-25 21:05 ` fabien at gcc dot gnu.org
2013-02-28 16:02 ` jason at gcc dot gnu.org
2013-02-28 20:34 ` 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).