[Bug c++/94590] Incorrectly accepts invalid C++11 braced initialisation of double from long double if sizeof(long double)==sizeof(double)
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 14 10:15:50 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94590
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2020-04-14
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Giuseppe D'Angelo from comment #0)
> +++ This bug was initially created as a clone of Bug #92856 +++
>
> (Sorry, couldn't find a way to reopen _that_ bug, so creating a new one)
Good, it's not the same bug. That one said we should give an error not a
warning, which is wrong.
This one says we should give a diagnostic irrespective of target, which is
correct.
More information about the Gcc-bugs
mailing list