public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110978] New: [14 Regression] ICE lambda constrained with to-be-deduced object
@ 2023-08-10 19:16 johelegp at gmail dot com
  2023-08-10 20:06 ` [Bug c++/110978] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: johelegp at gmail dot com @ 2023-08-10 19:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110978
           Summary: [14 Regression] ICE lambda constrained with
                    to-be-deduced object
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
                CC: johelegp at gmail dot com
  Target Milestone: ---

See <https://compiler-explorer.com/z/3a87zrhqd>.

```C++
int f(int);
int main() {
  auto f = [](auto obj) requires requires { f(obj); } { return f(obj); }(0);
}
```

```output
<source>: In function 'int main()':
<source>:3:45: error: use of 'f' before deduction of 'auto'
    3 |   auto f = [](auto obj) requires requires { f(obj); } { return f(obj);
}(0);
      |                                             ^
<source>:3:12: error: constraints on a non-templated function
    3 |   auto f = [](auto obj) requires requires { f(obj); } { return f(obj);
}(0);
      |            ^
<source>:3:53: internal compiler error: in dependent_type_p, at cp/pt.cc:27895
    3 |   auto f = [](auto obj) requires requires { f(obj); } { return f(obj);
}(0);
      |                                                     ^
0x24742fe internal_error(char const*, ...)
        ???:0
0xaca188 fancy_abort(char const*, int, char const*)
        ???:0
0xb8c067 start_preparsed_function(tree_node*, tree_node*, int)
        ???:0
0xbeaac9 start_lambda_function(tree_node*, tree_node*)
        ???:0
0xcb0974 c_parse_file()
        ???:0
0xdf1599 c_common_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
```

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

* [Bug c++/110978] ICE lambda constrained with to-be-deduced object
  2023-08-10 19:16 [Bug c++/110978] New: [14 Regression] ICE lambda constrained with to-be-deduced object johelegp at gmail dot com
@ 2023-08-10 20:06 ` pinskia at gcc dot gnu.org
  2023-08-10 20:06 ` pinskia at gcc dot gnu.org
  2023-08-14  3:01 ` johelegp at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-10 20:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |12.3.0
            Summary|[14 Regression] ICE lambda  |ICE lambda constrained with
                   |constrained with            |to-be-deduced object
                   |to-be-deduced object        |
           Keywords|                            |error-recovery,
                   |                            |ice-checking

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The ICE was there in GCC 12.3.0 also:
`confused by earlier errors, bailing out` is just covering up the ICE after an
error for releases.


Confirmed.

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

* [Bug c++/110978] ICE lambda constrained with to-be-deduced object
  2023-08-10 19:16 [Bug c++/110978] New: [14 Regression] ICE lambda constrained with to-be-deduced object johelegp at gmail dot com
  2023-08-10 20:06 ` [Bug c++/110978] " pinskia at gcc dot gnu.org
@ 2023-08-10 20:06 ` pinskia at gcc dot gnu.org
  2023-08-14  3:01 ` johelegp at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-10 20:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-08-10

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

* [Bug c++/110978] ICE lambda constrained with to-be-deduced object
  2023-08-10 19:16 [Bug c++/110978] New: [14 Regression] ICE lambda constrained with to-be-deduced object johelegp at gmail dot com
  2023-08-10 20:06 ` [Bug c++/110978] " pinskia at gcc dot gnu.org
  2023-08-10 20:06 ` pinskia at gcc dot gnu.org
@ 2023-08-14  3:01 ` johelegp at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: johelegp at gmail dot com @ 2023-08-14  3:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> ---
Thank you for the clarification.
Now I can be conscious about that.

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

end of thread, other threads:[~2023-08-14  3:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-10 19:16 [Bug c++/110978] New: [14 Regression] ICE lambda constrained with to-be-deduced object johelegp at gmail dot com
2023-08-10 20:06 ` [Bug c++/110978] " pinskia at gcc dot gnu.org
2023-08-10 20:06 ` pinskia at gcc dot gnu.org
2023-08-14  3:01 ` johelegp at gmail dot com

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).