Summary: | default constructor with argument INT | ||
---|---|---|---|
Product: | gcc | Reporter: | Lisp2D <lisp2d> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 4.5.1 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
Lisp2D
2011-03-23 15:43:22 UTC
t.C:5:6: error: no matching function for call to ‘A::A(int)’ t.C:1:8: note: candidates are: A::A() t.C:1:8: note: A::A(const A&) your code example is rejected as it should. found silent conversion class A have explicit A(std::complex<long double>const& x); |