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++/12999] Internal compiler error for syntax error with __attribute__ ((packed))


------- Additional Comments From bangerth at dealii dot org  2003-11-10 22:35 -------
Confirmed. Here's something smaller:
--------------------
void foo() {
  typedef struct
  {
      int i;
  } S; __attribute__ ((packed)) S;
}
--------------------
This ICEs with everything up to gcc3.3.2, so it's not a regression. In
addition, it is fixed in mainline, which reports

g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -c x.cc
x.cc: In function `void foo()':
x.cc:5: error: declaration does not declare anything

So this is fixed.

W.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |ice-on-invalid-code
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4


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


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