https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14769
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|wrong-code |accepts-invalid
Blocks| |94404
Alias| |cwg426
Status|SUSPENDED |NEW
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> [Adopted at the February/March, 2017 meeting.]
The defect report has now been adopted for C++20, and the code is illformed
(invalid).
I don't know if this is illformed with no diagnostic required or not but I
suspect it requires a diagnostic.
So now this is an accepts invalid.
Also note clang rejects the example program in comment #0 as illformed already
as the types are different const int vs int.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404
[Bug 94404] [meta-bug] C++ core issues