public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95093] New: Implement DR 1966, Colon following enumeration elaborated-type-specifier
@ 2020-05-12 19:30 mpolacek at gcc dot gnu.org
2020-05-12 23:40 ` [Bug c++/95093] " ensadc at mailnesia dot com
2021-12-14 4:55 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-05-12 19:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95093
Bug ID: 95093
Summary: Implement DR 1966, Colon following enumeration
elaborated-type-specifier
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
In C++11
enum E { };
void f(bool b)
{
E e = b ? *new enum E : E{};
}
should now compile: the colon is not an enum-base, it's part of a ternary
operator. But we think we're defining a new type here, and reject it.
See http://wg21.link/cwg1966
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/95093] Implement DR 1966, Colon following enumeration elaborated-type-specifier
2020-05-12 19:30 [Bug c++/95093] New: Implement DR 1966, Colon following enumeration elaborated-type-specifier mpolacek at gcc dot gnu.org
@ 2020-05-12 23:40 ` ensadc at mailnesia dot com
2021-12-14 4:55 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: ensadc at mailnesia dot com @ 2020-05-12 23:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95093
ensadc at mailnesia dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ensadc at mailnesia dot com
--- Comment #1 from ensadc at mailnesia dot com ---
Probably related/covered in https://wg21.link/cwg2141 (PR50169).
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/95093] Implement DR 1966, Colon following enumeration elaborated-type-specifier
2020-05-12 19:30 [Bug c++/95093] New: Implement DR 1966, Colon following enumeration elaborated-type-specifier mpolacek at gcc dot gnu.org
2020-05-12 23:40 ` [Bug c++/95093] " ensadc at mailnesia dot com
@ 2021-12-14 4:55 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-14 4:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95093
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2021-12-14
Alias| |cwg1966
Status|UNCONFIRMED |NEW
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-14 4:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-12 19:30 [Bug c++/95093] New: Implement DR 1966, Colon following enumeration elaborated-type-specifier mpolacek at gcc dot gnu.org
2020-05-12 23:40 ` [Bug c++/95093] " ensadc at mailnesia dot com
2021-12-14 4:55 ` 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).