[Bug c++/30703] ICE Segmentation fault on using OpenMP
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Feb 6 10:11:00 GMT 2007
------- Comment #2 from jakub at gcc dot gnu dot org 2007-02-06 10:11 -------
Simplified testcase:
struct A
{
A() {}
~A() {}
int i;
};
void
foo (A a)
{
#pragma omp parallel firstprivate (a)
a.i++;
}
The problem is that while OpenMP 2.5 prohibits firstprivate etc. vars having
reference type (and we properly diagnose it), cp_genericize_r changes
TREE_ADDRESSABLE class parameters to reference type internally and this is
something cc1plus should handle.
--
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|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-02-06 10:11:01
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30703
More information about the Gcc-bugs
mailing list