public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65127] New: internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'addr_expr' in parsing_nsdmi, at cp/parser.c:18311
@ 2015-02-20  1:14 lukeallardyce at gmail dot com
  2015-02-20  9:48 ` [Bug c++/65127] [5 Regression] " mpolacek at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: lukeallardyce at gmail dot com @ 2015-02-20  1:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65127

            Bug ID: 65127
           Summary: internal compiler error: tree check: expected tree
                    that contains 'decl minimal' structure, have
                    'addr_expr' in parsing_nsdmi, at cp/parser.c:18311
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lukeallardyce at gmail dot com

void make_item()
{
  static int i{100};

  struct
  {
    int id{i++};
  } item;
}

int main()
{
  make_item<0>();
}

------

g++ -std=c++11 bug.cpp -c

bug.cpp: In instantiation of 'void make_item() [with int sz = 0]':
bug.cpp:14:16:   required from here
bug.cpp:9:5: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'addr_expr' in parsing_nsdmi, at
cp/parser.c:18311
   } item;
     ^

bug.cpp:9:5: internal compiler error: Abort trap: 6
g++: internal compiler error: Abort trap: 6 (program cc1plus)


GCC built from trunk on 2/16


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

end of thread, other threads:[~2015-03-11 19:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-20  1:14 [Bug c++/65127] New: internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'addr_expr' in parsing_nsdmi, at cp/parser.c:18311 lukeallardyce at gmail dot com
2015-02-20  9:48 ` [Bug c++/65127] [5 Regression] " mpolacek at gcc dot gnu.org
2015-02-20 13:55 ` jakub at gcc dot gnu.org
2015-02-24 20:38 ` ktietz at gcc dot gnu.org
2015-03-10 16:47 ` jason at gcc dot gnu.org
2015-03-10 19:11 ` jakub at gcc dot gnu.org
2015-03-11 19:11 ` jakub 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).