------- Comment #4 from pinskia at gcc dot gnu dot org 2006-12-29 01:56 ------- 2.8.1.1 Sharing Attribute Rules for Variables Referenced in a Construct
line 7 on page 64: Variables with const-qualified type having nomutable member are shared. Variables with predetermined sharing attributes may not be listed in data-sharing attribute clauses, with the following exceptions: The loop iteration variable in the for-loop of a for or parallel for construct may be listed in a private or lastprivate clause. So this is invalid and the error message is correct as the const variable has a predetermined sharing attributes and you are trying to list it in a data sharing attribute cause. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30323