http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905
--- Comment #5 from Andrew Pinski 2012-10-11
21:52:06 UTC ---
The real testcase that shows the issue with GCC:
struct f
{
};
f g;
struct A
{
A(f& s);
};
int main() {
A(g), 1;
}
--- CUT ---
The other testcase I thin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905
Andrew Pinski changed:
What|Removed |Added
Severity|blocker |normal
--- Comment #4 from Andr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905
--- Comment #3 from Andrew Pinski 2012-10-11
21:45:28 UTC ---
(In reply to comment #2)
> Looks like GCC is getting confused if the constructor is going to be a
> function
> declaration or not.
s/function/variable/
Here is a testcase
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905
--- Comment #2 from Andrew Pinski 2012-10-11
21:41:13 UTC ---
Looks like GCC is getting confused if the constructor is going to be a function
declaration or not.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905
--- Comment #1 from Marc Glisse 2012-10-11 21:39:01
UTC ---
#include
struct A
{
A(std::ostream& s);
};
int main() {
A(std::cout);
}