[Bug c/37267] [4.2/4.3/4.4 Regression] #pragma inside structure initialization causes error

2008-10-21 Thread mmitchel at gcc dot gnu dot org


--- Comment #6 from mmitchel at gcc dot gnu dot org  2008-10-22 03:50 
---
Closed as INVALID, per Comment #4 and Comment #5.


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37267



[Bug c/37267] [4.2/4.3/4.4 Regression] #pragma inside structure initialization causes error

2008-09-21 Thread joseph at codesourcery dot com


--- Comment #5 from joseph at codesourcery dot com  2008-09-21 16:12 ---
Subject: Re:  [4.2/4.3/4.4 Regression] #pragma inside structure
 initialization causes error

On Sat, 20 Sep 2008, rguenth at gcc dot gnu dot org wrote:

 I agree with Jakub.  Joseph - are you ok with closing this as invalid?

Yes.

I think back ends should be able to register non-deferred pragmas, which 
should be allowed everywhere (and wouldn't reach the parser at all), like 
the ident pragma of the motivating case for this PR, but it's for the 
person adding such a pragma to add the facilities required.  #pragma weak 
is one I think it is entirely appropriate to allow only at limited places 
in the grammar rather than trying to define what it means in the middle 
of a declaration.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37267



[Bug c/37267] [4.2/4.3/4.4 Regression] #pragma inside structure initialization causes error

2008-09-20 Thread rguenth at gcc dot gnu dot org


--- Comment #4 from rguenth at gcc dot gnu dot org  2008-09-20 14:35 ---
I agree with Jakub.  Joseph - are you ok with closing this as invalid?


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||jsm28 at gcc dot gnu dot org
 Status|NEW |WAITING
   Keywords|rejects-valid   |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37267



[Bug c/37267] [4.2/4.3/4.4 Regression] #pragma inside structure initialization causes error

2008-09-03 Thread jakub at gcc dot gnu dot org


--- Comment #2 from jakub at gcc dot gnu dot org  2008-09-03 09:41 ---
Similar to PR25246.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37267



[Bug c/37267] [4.2/4.3/4.4 Regression] #pragma inside structure initialization causes error

2008-09-03 Thread jakub at gcc dot gnu dot org


--- Comment #3 from jakub at gcc dot gnu dot org  2008-09-03 09:47 ---
But I'm not convinced we want to allow pragmas in this context.  While these
pragmas aren't covered by the C standard, for all the covered pragmas in there
they must appear outside of external declarations or explicit declarations and
statements inside a compound statement.  While there was a point in handling
some pragmas inside of structure/union definition, pragmas at this spot don't
serve anything useful and allowing it here would mean
basically we'd need to handle pragmas almost everywhere in the grammar.


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||rth at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37267



[Bug c/37267] [4.2/4.3/4.4 Regression] #pragma inside structure initialization causes error

2008-09-02 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2008-09-02 20:53 ---
Confirmed, this is most likely caused by the pragma changes in 4.2 as 4.1.1
works.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||rejects-valid
  Known to fail||4.2.0 4.3.0 4.4.0
  Known to work||4.1.1
   Last reconfirmed|-00-00 00:00:00 |2008-09-02 20:53:30
   date||
Summary|#pragma inside structure|[4.2/4.3/4.4 Regression]
   |initialization causes error |#pragma inside structure
   ||initialization causes error
   Target Milestone|--- |4.2.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37267