This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55082] c++11: default member constructor
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Oct 2012 17:24:35 +0000
- Subject: [Bug c++/55082] c++11: default member constructor
- Auto-submitted: auto-generated
- References: <bug-55082-4@http.gcc.gnu.org/bugzilla/>
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.