: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: david.d.kretzmer at gmail dot com
#include
struct Foo
{
Foo(std::initializer_list = {}) {}
};
Foo f{1
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: david.d.kretzmer at gmail dot com
In GCC 4.8 and 4.9 (4.7 seems to work correctly) a type alias inside a class
seems to overwrite under certain conditions a type alias of the same name
: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: david.d.kretzmer at gmail dot com
GCC 4.9.0 rejects the following code:
struct F
{
template
operator const T&() { static T t; return t; }
};
int main()
{
F f;
int i = f; // error: cannot convert
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51553
--- Comment #6 from david.d.kretzmer at gmail dot com ---
Exactly. I first thought this is a bug in clang but then I saw this invalid bug
report: http://llvm.org/bugs/show_bug.cgi?id=17376
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51553
david.d.kretzmer at gmail dot com changed:
What|Removed |Added
CC||david.d.kretzmer at