[Bug c++/67631] brace initialization bug
gcc at pauldreik dot se
gcc-bugzilla@gcc.gnu.org
Sat Nov 12 14:49:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67631
Paul Dreik <gcc at pauldreik dot se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gcc at pauldreik dot se
--- Comment #2 from Paul Dreik <gcc at pauldreik dot se> ---
This is still present in 6.2 (as packaged by Debian)
#67631.cpp is the code in Howard Hinnants comment 2015-09-18 20:51:59 UTC
paul@debian-stretch:~$ g++ -std=c++14 67631.cpp
67631.cpp: In instantiation of 'void test(const U&) [with T = unsigned int; U =
X]':
67631.cpp:34:24: required from here
67631.cpp:10:7: error: cannot convert 'const X' to 'unsigned int' in
initialization
t = T{uo};
~~^~~~~~~
paul@debian-stretch:~$ g++ --version
g++ (Debian 6.2.0-10) 6.2.0 20161027
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
More information about the Gcc-bugs
mailing list