http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60014
--- Comment #1 from Fredrik Hallenberg ---
Same results with gcc 4.9.0
Assignee: unassigned at gcc dot gnu.org
Reporter: megahallon at gmail dot com
Created attachment 35394
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35394&action=edit
Preprocessed C file causing gcc crash
The enclosed file crashes gcc when compiled with -O2 as seen bel
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60014
--- Comment #5 from Fredrik Hallenberg ---
Same results with gcc 5.1.0.
: unassigned at gcc dot gnu.org
Reporter: megahallon at gmail dot com
Using gcc 4.8.2:
/tmp/foo/foo.h:
---
#define FOO(a, b) __LINE__;
---
bug.c:
---
#include "foo.h"
int main()
{
FOO(1,
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: megahallon at gmail dot com
Target Milestone: ---
The following snippet:
-
template
void p()
{
int val = ({union {int x;}; 3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60014
--- Comment #6 from Fredrik Hallenberg ---
Reconfirmed with gcc 6.1.1
Priority: P3
Component: preprocessor
Assignee: unassigned at gcc dot gnu.org
Reporter: megahallon at gmail dot com
Target Milestone: ---
The following program:
---
#define m(x) ({ int y; if (x) y=0; else y=1; y; })
int main()
{
int x =
m(0);
return x