[Bug c++/11532] New: c++ segfault on __attribute__ for missing variable name

billy at dadadada dot net gcc-bugzilla@gcc.gnu.org
Tue Jul 15 22:34:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: c++ segfault on __attribute__ for missing variable name
           Product: gcc
           Version: 3.2.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: billy at dadadada dot net
                CC: gcc-bugs at gcc dot gnu dot org

g++ 3.2.2 will segfault if I give an attribute to a variable and
forget to put the variable's name.  I found this while debugging some
macros.  Globals do not appear to be affected, only automatics.

$ cat foo.cc
void foo(void) { int __attribute__((aligned)); }

$ i686-pc-linux-gnu-c++ foo.cc
foo.cc: In function `void foo()':
foo.cc:1: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

$ i686-pc-linux-gnu-c++ -v
Reading specs from /development/tools/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/specs
Configured with: ../../source/gcc/configure --prefix=/development/tools
--enable-languages=c,c++
Thread model: posix
gcc version 3.2.2



More information about the Gcc-bugs mailing list