public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95937] New: ICE in finish_class_member_access_expr, at cp/typeck.c:3133
@ 2020-06-27 11:13 haoxintu at gmail dot com
  2020-06-27 18:13 ` [Bug c++/95937] " mpolacek at gcc dot gnu.org
  2021-08-05 10:14 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: haoxintu at gmail dot com @ 2020-06-27 11:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95937
           Summary: ICE in finish_class_member_access_expr, at
                    cp/typeck.c:3133
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: haoxintu at gmail dot com
  Target Milestone: ---

This code, bug.cc, reduced by C-Reduce, makes GCC-trunk ICE.

$cat bug.cc
void a { [].decltype(auto)::b

$g++ bug.cc
bug.cc:1:6: error: variable or field ‘a’ declared void
    1 | void a { [].decltype(auto)::b
      |      ^
bug.cc: In lambda function:
bug.cc:1:12: error: expected ‘{’ before ‘.’ token
    1 | void a { [].decltype(auto)::b
      |            ^
bug.cc: At global scope:
bug.cc:1:29: internal compiler error: in finish_class_member_access_expr, at
cp/typeck.c:3133
    1 | void a { [].decltype(auto)::b
      |                             ^
0x69a36f finish_class_member_access_expr(cp_expr, tree_node*, bool, int)
        ../../gcc/cp/typeck.c:3133
0x9b9d27 cp_parser_postfix_dot_deref_expression
        ../../gcc/cp/parser.c:7900
0x9b2c52 cp_parser_postfix_expression
        ../../gcc/cp/parser.c:7540
0x99564a cp_parser_binary_expression
        ../../gcc/cp/parser.c:9609
0x9971ae cp_parser_assignment_expression
        ../../gcc/cp/parser.c:9914
0x995f6d cp_parser_constant_expression
        ../../gcc/cp/parser.c:10208
0x9966d1 cp_parser_initializer_clause
        ../../gcc/cp/parser.c:23272
0x99683a cp_parser_initializer_list
        ../../gcc/cp/parser.c:23550
0x99683a cp_parser_braced_list
        ../../gcc/cp/parser.c:23311
0x99aa3a cp_parser_initializer
        ../../gcc/cp/parser.c:23228
0x9c259b cp_parser_init_declarator
        ../../gcc/cp/parser.c:20903
0x9a36d2 cp_parser_simple_declaration
        ../../gcc/cp/parser.c:13785
0x9cc926 cp_parser_declaration
        ../../gcc/cp/parser.c:13484
0x9cd06a cp_parser_translation_unit
        ../../gcc/cp/parser.c:4761
0x9cd06a c_parse_file()
        ../../gcc/cp/parser.c:44043
0xae4dbb c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1190
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.


$g++ --version
g++ (GCC) 11.0.0 20200626 (experimental)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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

* [Bug c++/95937] ICE in finish_class_member_access_expr, at cp/typeck.c:3133
  2020-06-27 11:13 [Bug c++/95937] New: ICE in finish_class_member_access_expr, at cp/typeck.c:3133 haoxintu at gmail dot com
@ 2020-06-27 18:13 ` mpolacek at gcc dot gnu.org
  2021-08-05 10:14 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-06-27 18:13 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-06-27
     Ever confirmed|0                           |1
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.

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

* [Bug c++/95937] ICE in finish_class_member_access_expr, at cp/typeck.c:3133
  2020-06-27 11:13 [Bug c++/95937] New: ICE in finish_class_member_access_expr, at cp/typeck.c:3133 haoxintu at gmail dot com
  2020-06-27 18:13 ` [Bug c++/95937] " mpolacek at gcc dot gnu.org
@ 2021-08-05 10:14 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-05 10:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note this does not ICE with -std=c++11 or -std=c++98 :).

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

end of thread, other threads:[~2021-08-05 10:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-27 11:13 [Bug c++/95937] New: ICE in finish_class_member_access_expr, at cp/typeck.c:3133 haoxintu at gmail dot com
2020-06-27 18:13 ` [Bug c++/95937] " mpolacek at gcc dot gnu.org
2021-08-05 10:14 ` pinskia 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).