[Bug c++/63723] Narrowing conversion allowed in braced init list in SFINAE context

2014-12-18 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63723

Paolo Carlini paolo.carlini at oracle dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-12-18
 Ever confirmed|0   |1

--- Comment #5 from Paolo Carlini paolo.carlini at oracle dot com ---
This isn't a regression, thus for the time being I'm going to simply add a
testcase. If you want to argue for a backport, please figure out the commit
which fixed the bug and send a message to gcc-patches.


[Bug c++/63723] Narrowing conversion allowed in braced init list in SFINAE context

2014-12-18 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63723

--- Comment #6 from paolo at gcc dot gnu.org paolo at gcc dot gnu.org ---
Author: paolo
Date: Fri Dec 19 00:02:05 2014
New Revision: 218880

URL: https://gcc.gnu.org/viewcvs?rev=218880root=gccview=rev
Log:
2014-12-18  Paolo Carlini  paolo.carl...@oracle.com

PR c++/63723
* g++.dg/cpp0x/sfinae54.C: New.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/sfinae54.C
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug c++/63723] Narrowing conversion allowed in braced init list in SFINAE context

2014-12-18 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63723

Paolo Carlini paolo.carlini at oracle dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |5.0

--- Comment #7 from Paolo Carlini paolo.carlini at oracle dot com ---
Done.


[Bug c++/63723] Narrowing conversion allowed in braced init list in SFINAE context

2014-12-18 Thread tavianator at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63723

--- Comment #8 from Tavian Barnes tavianator at gmail dot com ---
Actually it is a regression: according to http://gcc.godbolt.org/, GCC 4.6.4
compiled it correctly with -std=c++0x and

  typedef decltype(helperFrom, To(0)) type;

instead of

  using type = decltype(helperFrom, To(0));

while still allowing

  int x{1.0};


[Bug c++/63723] Narrowing conversion allowed in braced init list in SFINAE context

2014-11-04 Thread tavianator at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63723

--- Comment #4 from Tavian Barnes tavianator at gmail dot com ---
Still happens with 4.9.2 though.  Is a backport of the fix possible?


[Bug c++/63723] Narrowing conversion allowed in braced init list in SFINAE context

2014-11-03 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63723

Manuel López-Ibáñez manu at gcc dot gnu.org changed:

   What|Removed |Added

 CC||manu at gcc dot gnu.org

--- Comment #1 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
and what is that third template parameter? 

‘templateclass From2, class To2, class static std::true_type
is_list_convertible_helperFrom, To::helper(int) [with From2 = double; To2 =
int; template-parameter-1-3 = missing]’

[Bug c++/63723] Narrowing conversion allowed in braced init list in SFINAE context

2014-11-03 Thread tavianator at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63723

--- Comment #2 from Tavian Barnes tavianator at gmail dot com ---
It's decltype(requires_conversionTo2({std::declvalFrom2()})).  Not sure why
it says missing.


[Bug c++/63723] Narrowing conversion allowed in braced init list in SFINAE context

2014-11-03 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63723

Daniel Krügler daniel.kruegler at googlemail dot com changed:

   What|Removed |Added

 CC||daniel.kruegler@googlemail.
   ||com

--- Comment #3 from Daniel Krügler daniel.kruegler at googlemail dot com ---
The problem seems to be fixed in gcc HEAD 5.0.0 20141103 (experimental).