[Bug c++/92551] accepts invalid code in function template
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 18 14:08:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92551
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2019-11-18
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Darrell Wright from comment #0)
> I accidently produced this invalid code and it worked as intended until I
> tested further. However, the integer_sequence should never have been deduced
> https://gcc.godbolt.org/z/hp4crn
>
> This will return 20, but should be an error
Why? It looks deducable to me.
More information about the Gcc-bugs
mailing list