public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109961] New: storage size of 'variable name' isn't known
@ 2023-05-25 0:50 Darrell.Wright at gmail dot com
2023-05-25 1:01 ` [Bug c++/109961] auto assigned from requires and lambda inside pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: Darrell.Wright at gmail dot com @ 2023-05-25 0:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109961
Bug ID: 109961
Summary: storage size of 'variable name' isn't known
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: Darrell.Wright at gmail dot com
Target Milestone: ---
The following valid code fails to compile in gcc-trunk on
https://foo.godbolt.org/z/vGMGbv8oP
auto a = requires{
[]( int b ) consteval {
if( b ) {
throw b;
}
}( 0 );
};
With the following error
<source>:3:6: error: storage size of 'a' isn't known
3 | auto a = requires{
| ^
Compiler returned: 1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/109961] auto assigned from requires and lambda inside
2023-05-25 0:50 [Bug c++/109961] New: storage size of 'variable name' isn't known Darrell.Wright at gmail dot com
@ 2023-05-25 1:01 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-25 1:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109961
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Summary|storage size of 'variable |auto assigned from requires
|name' isn't known |and lambda inside
Keywords| |c++-lambda, rejects-valid
Last reconfirmed| |2023-05-25
Status|UNCONFIRMED |NEW
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Reduced all the way:
```
auto a = requires{ []() {}; };
```
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-25 1:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-25 0:50 [Bug c++/109961] New: storage size of 'variable name' isn't known Darrell.Wright at gmail dot com
2023-05-25 1:01 ` [Bug c++/109961] auto assigned from requires and lambda inside 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).