[Bug c++/86303] Constructor is not used for type conversion

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 25 10:10:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86303

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Comeau might have accepted it in 2010 but EDG rejects it today:

"ap.cc", line 20: error: no instance of constructor "Y::Y" matches the argument
          list
            argument types are: (auto_ptr)
  Y f(foo());
      ^

1 error detected in the compilation of "ap.cc".


More information about the Gcc-bugs mailing list