[Bug c++/40685] explicit constructor is used where only implicit ctors are allowed

2009-08-25 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-08-25 14:39 --- Hm, confusing: - enum E {e}; struct A { A(int); explicit A(E) {}; }; int main () { A a = e; } - This compiles but not links becase A::A(int) is called. If

[Bug c++/40685] explicit constructor is used where only implicit ctors are allowed

2009-08-25 Thread kretz at kde dot org
--- Comment #3 from kretz at kde dot org 2009-08-25 15:26 --- Actually I came across this problem because my code was failing on MSVC and icc. Then I noticed that icc compiles the code, the one that I pasted, differently. On further investigation I decided that gcc is at fault and that m

[Bug c++/40685] explicit constructor is used where only implicit ctors are allowed

2011-08-18 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40685 Jonathan Wakely changed: What|Removed |Added Known to work||4.7.0 Known to fail|

[Bug c++/40685] explicit constructor is used where only implicit ctors are allowed

2011-08-18 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40685 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/40685] explicit constructor is used where only implicit ctors are allowed

2009-07-29 Thread kretz at kde dot org
--- Comment #1 from kretz at kde dot org 2009-07-29 14:51 --- I just tested with 4.4.1 and I can still confirm the problem. -- kretz at kde dot org changed: What|Removed |Added ---