public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101898] New: [concepts] ICE with auto in concept definition
@ 2021-08-13 12:02 reichelt at gcc dot gnu.org
  2021-08-13 17:46 ` [Bug c++/101898] " pinskia at gcc dot gnu.org
  2021-11-01  9:39 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: reichelt at gcc dot gnu.org @ 2021-08-13 12:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101898
           Summary: [concepts] ICE with auto in concept definition
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org
  Target Milestone: ---

The following valid code snippet (compiled with "-fconcepts")
triggers an ICE since GCC 6.1.0 (when concepts were introduced):

================================================
template<typename> concept bool C
  = requires(int i, void(f)(auto)) { true; };
================================================

bug.cc:2:45: internal compiler error: in pop_local_binding, at
cp/name-lookup.c:2496
    2 |   = requires(int i, void(f)(auto)) { true; };
      |                                             ^
0x6c5612 pop_local_binding(tree_node*, tree_node*)
        ../../gcc/gcc/cp/name-lookup.c:2496
0x6c5612 pop_local_binding(tree_node*, tree_node*)
        ../../gcc/gcc/cp/name-lookup.c:2484
0x9d6279 poplevel(int, int, int)
        ../../gcc/gcc/cp/decl.c:731
0xadc2a8 end_template_decl()
        ../../gcc/gcc/cp/pt.c:4738
0xaccc23 cp_parser_template_declaration_after_parameters
        ../../gcc/gcc/cp/parser.c:30992
0xacd2a0 cp_parser_explicit_template_declaration
        ../../gcc/gcc/cp/parser.c:31232
0xacfd69 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:14718
0xad078e cp_parser_toplevel_declaration
        ../../gcc/gcc/cp/parser.c:14808
0xad078e cp_parser_translation_unit
        ../../gcc/gcc/cp/parser.c:4978
0xad078e c_parse_file()
        ../../gcc/gcc/cp/parser.c:46558
0xbf924d c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1223
Please submit a full bug report, [etc.]

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

* [Bug c++/101898] [concepts] ICE with auto in concept definition
  2021-08-13 12:02 [Bug c++/101898] New: [concepts] ICE with auto in concept definition reichelt at gcc dot gnu.org
@ 2021-08-13 17:46 ` pinskia at gcc dot gnu.org
  2021-11-01  9:39 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-13 17:46 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-08-13
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

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

* [Bug c++/101898] [concepts] ICE with auto in concept definition
  2021-08-13 12:02 [Bug c++/101898] New: [concepts] ICE with auto in concept definition reichelt at gcc dot gnu.org
  2021-08-13 17:46 ` [Bug c++/101898] " pinskia at gcc dot gnu.org
@ 2021-11-01  9:39 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-01  9:39 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hewillk at gmail dot com

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 103018 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2021-11-01  9:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-13 12:02 [Bug c++/101898] New: [concepts] ICE with auto in concept definition reichelt at gcc dot gnu.org
2021-08-13 17:46 ` [Bug c++/101898] " pinskia at gcc dot gnu.org
2021-11-01  9:39 ` 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).