This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/26691] Wrong code for constructor with default value



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]