[Bug c++/29188] undocumented extension with ambiguous between conversion function/constructor. related to const

2018-11-17 Thread sandra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29188 sandra at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic CC

[Bug c++/29188] undocumented extension with ambiguous between conversion function/constructor. related to const

2006-10-09 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2006-10-10 03:44 --- Confirmed. Not a useful extension because confusing: - struct A; struct B { B (const A&); }; struct A { operator B() const; }; A a; B b1 = a;// xpass --- g/x> /home/ban

[Bug c++/29188] undocumented extension with ambiguous between conversion function/constructor. related to const

2006-09-23 Thread greifel at megatop200 dot com
--- Comment #2 from greifel at megatop200 dot com 2006-09-23 16:29 --- According to 1.4/8 implementations with extensions are required to "diagnose programs that use extensions that are ill-formed according to this International Standard." This code is ill-formed so presumably g++ should

[Bug c++/29188] undocumented extension with ambiguous between conversion function/constructor. related to const

2006-09-22 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-22 23:58 --- I changed the summary since this is undocumented extension and we reject it with -pedantic already, I don't know if this is useful extension or not. -- pinskia at gcc dot gnu dot org changed: What