This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/61207] New: Win64 gcc 4.9.0: ICE at -Os compiling some C++ code
- From: "mingw.android at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 17 May 2014 00:43:56 +0000
- Subject: [Bug middle-end/61207] New: Win64 gcc 4.9.0: ICE at -Os compiling some C++ code
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61207
Bug ID: 61207
Summary: Win64 gcc 4.9.0: ICE at -Os compiling some C++ code
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: mingw.android at gmail dot com
Created attachment 32810
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32810&action=edit
testcase for Win64 gcc 4.9.0 ICE at -Os compiling some C++ code
I work on the MSYS2 project and we ran into:
g++ -Os -x c++ testcase.i
testcase.i: In constructor 'QQuickFlickablePrivate::QQuickFlickablePrivate()':
testcase.i:47:10: internal compiler error: in expand_expr_addr_expr_1, at
expr.c:7669
{}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://sourceforge.net/projects/msys2> for instructions.
This ICE doesn't happen at -O2 or when specifying the same flags that -Os
enables, so I think it is a specific size-optimization that causes this.
g++ --version
g++.exe (Rev4, Built by MSYS2 project) 4.9.0
.. I also tested with an unpatched version of 4.9.0 with the same results.