[Bug c++/26691] Wrong code for constructor with default value
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 15 13:09:00 GMT 2006
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-15 13:09 -------
Hmm, on second thought I think this is a front-end bug.
And here is a self contained testcase:
struct A
{
int n;
A(int i=3) : n(i) {}
};
int main()
{
A a;
#pragma omp parallel private (a)
if (a.n!=3) __builtin_abort();
return 0;
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |c++
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26691
More information about the Gcc-bugs
mailing list