http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55570
Bug #: 55570
Summary: Undefined variable in alignment compiler directive
causes compiler segfault
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 28857
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28857
.i file that generates compiler segfault
Version:
$ gcc --version
gcc (GCC) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
System Type:
$ uname -a
Linux david-pc 3.6.8-1-ARCH #1 SMP PREEMPT Mon Nov 26 22:10:40 CET 2012 x86_64
GNU/Linux
Compiler command:
gcc -c test.c -o test
Compiler output:
$ gcc -c test.c -o test
test.c:1:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
C code:
char array[16] __attribute__((aligned (SOME_NOT_DEFINED_MACRO)));
int main() {
return 0;
}
.i file attached.