[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2018-08-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 Marek Polacek changed: What|Removed |Added Keywords||accepts-invalid Status|ASSIG

[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2018-08-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 --- Comment #11 from Marek Polacek --- Author: mpolacek Date: Mon Aug 13 23:12:11 2018 New Revision: 263523 URL: https://gcc.gnu.org/viewcvs?rev=263523&root=gcc&view=rev Log: PR c++/57891 * call.c (struct conversion): Add check_n

[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2018-08-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 --- Comment #10 from Marek Polacek --- Right, we're still hashing this out on the mailing list. But I expect it to be fixed soon. There are similar cases not handled by my current patch, but I'll work on those next.

[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2018-08-06 Thread tadeus.prastowo at unitn dot it
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 --- Comment #9 from Tadeus Prastowo --- This problem still exists in the trunk (cf. https://godbolt.org/g/bRf18i). Clang correctly keeps rejecting it (cf. https://godbolt.org/g/egcNtV). Both use the following MWE: template struct X { static

[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2018-07-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 --- Comment #8 from Jonathan Wakely --- *** Bug 86596 has been marked as a duplicate of this bug. ***

[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2018-06-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #7 from Marek Polacek

[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2018-06-25 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 --- Comment #6 from Jonathan Wakely --- *** Bug 86298 has been marked as a duplicate of this bug. ***

[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2018-06-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2018-06-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 Jonathan Wakely changed: What|Removed |Added CC||zhonghao at pku dot org.cn --- Comment

[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2017-06-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 Jonathan Wakely changed: What|Removed |Added CC||akrzemi1 at gmail dot com --- Comment

[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2014-03-31 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 Jonathan Wakely changed: What|Removed |Added CC||filip.roseen at gmail dot com --- Comme

[Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument

2013-07-13 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57891 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|