[Bug c++/55082] c++11: default member constructor

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 26 17:25:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55082

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler at
                   |                            |googlemail dot com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-10-26 17:24:35 UTC ---
This is no compiler defect: The A constructor is explicit and won't be
considered within a copy-initialization context. You need a
direct-initialization context like the one that works. This is completely
analog to a rewrite of your main code as

B b = 1; // error: conversion from 'int' to non-scalar type 'B' requested

This issue is invalid.



More information about the Gcc-bugs mailing list