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++/56562] New: [AVR GCC] segmentation fault when '__attribute__((packed))' placed at front of enum declaration


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

             Bug #: 56562
           Summary: [AVR GCC] segmentation fault when
                    '__attribute__((packed))' placed at front of enum
                    declaration
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pawelwod@gmail.com


Created attachment 29610
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29610
Preprocessed testcase 1

when compiling file containig enum declaration like this, there is SIGSEGV.

__attribute__(( packed )) enum FooEnum
{
    e1,
    e2,
};

Console output is:

avr-g++ -v -save-temps  -c "test1.cpp"
Using built-in specs.
COLLECT_GCC=avr-g++
Target: avr
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr/lib
--infodir=/usr/share/info --mandir=/usr/share/man --bindir=/usr/bin
--libexecdir=/usr/lib --libdir=/usr/lib --enable-shared --with-system-zlib
--enable-long-long --enable-nls --without-included-gettext --disable-libssp
--build=i686-linux-gnu --host=i686-linux-gnu --target=avr
Thread model: single
gcc version 4.7.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c'
 /usr/lib/gcc/avr/4.7.0/cc1plus -E -quiet -v test1.cpp -fpch-preprocess
-fno-rtti -fno-enforce-eh-specs -fno-exceptions -o test1.ii
ignoring nonexistent directory
"/usr/lib/gcc/avr/4.7.0/../../../avr/include/c++/4.7.0"
ignoring nonexistent directory
"/usr/lib/gcc/avr/4.7.0/../../../avr/include/c++/4.7.0/avr"
ignoring nonexistent directory
"/usr/lib/gcc/avr/4.7.0/../../../avr/include/c++/4.7.0/backward"
ignoring nonexistent directory
"/usr/lib/gcc/avr/4.7.0/../../../avr/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/avr/4.7.0/include
 /usr/lib/gcc/avr/4.7.0/include-fixed
 /usr/lib/gcc/avr/4.7.0/../../../avr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c'
 /usr/lib/gcc/avr/4.7.0/cc1plus -fpreprocessed test1.ii -quiet -dumpbase
test1.cpp -auxbase test1 -version -fno-rtti -fno-enforce-eh-specs
-fno-exceptions -o test1.s
GNU C++ (GCC) version 4.7.0 (avr)
    compiled by GNU C version 4.7.0, GMP version 5.0.2, MPFR version 3.1.0-p3,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.7.0 (avr)
    compiled by GNU C version 4.7.0, GMP version 5.0.2, MPFR version 3.1.0-p3,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: f29438497e2f70243bbaac722728a03e
test1.cpp:5:1: internal compiler error: Naruszenie ochrony pamiÄci
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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