http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58399
Bug ID: 58399
Summary: explicit constructor called implicitly with empty
init-list
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
I think the following test should not compile, where an a object is implicitly
constructed when calling foo() using its explicit constructor.
struct a
{
explicit a () { }
};
void foo (a)
{
}
int main ()
{
foo ({ });
}