[Bug c++/26691] Wrong code for constructor with default value
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-21 17:02 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26691
[Bug c++/26691] Wrong code for constructor with default value
--- Comment #3 from jakub at gcc dot gnu dot org 2006-03-21 16:21 --- Subject: Bug 26691 Author: jakub Date: Tue Mar 21 16:21:24 2006 New Revision: 112251 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112251 Log: PR c++/26691 * cp-gimplify.c (cxx_omp_clause_apply_fn): Handle default arguments. * testsuite/libgomp.c++/pr26691.C: New test. Added: trunk/libgomp/testsuite/libgomp.c++/pr26691.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-gimplify.c trunk/libgomp/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26691
[Bug c++/26691] Wrong code for constructor with default value
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2006-03-15 12:58:26 |2006-03-20 14:24:25 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26691
[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