public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/114271] New: [ICE] on invalid
@ 2024-03-07 16:34 egor.pugin at gmail dot com
  2024-03-07 16:39 ` [Bug c++/114271] " egor.pugin at gmail dot com
  2024-03-07 16:47 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: egor.pugin at gmail dot com @ 2024-03-07 16:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114271
           Summary: [ICE] on invalid
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egor.pugin at gmail dot com
  Target Milestone: ---

int f=[](class{


<source>:1:15: error: types may not be defined in parameter types
    1 | int f=[](class{
      |               ^
<source>:1:16: error: expected '}' at end of input
    1 | int f=[](class{
      |               ~^
<source>:1:16: error: expected ',' or '...' at end of input
<source>:1:16: error: expected ')' at end of input
    1 | int f=[](class{
      |         ~      ^
      |                )
<source>: In lambda function:
<source>:1:16: error: expected '{' at end of input
g++: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report, with preprocessed source.
See <https://gcc.gnu.org/bugs/> for instructions.


Seems to ICE on every version.

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

* [Bug c++/114271] [ICE] on invalid
  2024-03-07 16:34 [Bug c++/114271] New: [ICE] on invalid egor.pugin at gmail dot com
@ 2024-03-07 16:39 ` egor.pugin at gmail dot com
  2024-03-07 16:47 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: egor.pugin at gmail dot com @ 2024-03-07 16:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Egor Pugin <egor.pugin at gmail dot com> ---
echo "int f=[](class{" | g++ -x c++ -

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

* [Bug c++/114271] [ICE] on invalid
  2024-03-07 16:34 [Bug c++/114271] New: [ICE] on invalid egor.pugin at gmail dot com
  2024-03-07 16:39 ` [Bug c++/114271] " egor.pugin at gmail dot com
@ 2024-03-07 16:47 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-07 16:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 56260 ***

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

end of thread, other threads:[~2024-03-07 16:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-07 16:34 [Bug c++/114271] New: [ICE] on invalid egor.pugin at gmail dot com
2024-03-07 16:39 ` [Bug c++/114271] " egor.pugin at gmail dot com
2024-03-07 16:47 ` 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).