First Last Prev Next    No search results available
Details
: [llvm-gcc] Crash compiling bitfield <-> aggregate assignment
Bug#: 517
: tools
: llvm-gcc
Status: RESOLVED
Resolution: FIXED
: All
: All
: 1.0
: P2
: normal
: 1.5

:
: compile-fail
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Adam Treat <manyoso@yahoo.com>
Assigned To: Chris Lattner <clattner@apple.com>

Attachments
gzip of processed source of qlineedit (166.63 KB, application/octet-stream)
2005-02-17 01:49, Adam Treat
Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2005-02-17 01:47
manyoso@shiva:~/dev/qt4/src/gui> llvm-g++ -c -pipe -Wall -W -D_REENTRANT -fPIC 
-DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII 
-DQT3_SUPPORT_WARNINGS-DQT_HAVE_FREETYPE -DQT_CORE_LIB-D_LARGEFILE64_SOURCE 
-D_LARGEFILE_SOURCE -I/home/manyoso/dev/qt4/mkspecs/linux-llvm -I. 
-I../../include/QtCore -I../../include -I../../include/QtGui 
-I../3rdparty/opentype -I/usr/X11R6/include -I/usr/include/freetype2 
-I.moc/debug-shared -I. -o .obj/debug-shared/qlineedit.o widgets/qlineedit.cpp 
<command line>:8:12: warning: ISO C requires whitespace after the macro name 
widgets/qlineedit_p.h: In constructor 
`QLineEditPrivate::Command::Command(QLineEditPrivate::CommandType, int, 
QChar)': 
widgets/qlineedit_p.h:129: internal compiler error: Segmentation fault 
 
Attaching the preprocessed source.
------- Comment #1 From Adam Treat 2005-02-17 01:49:32 -------
Created an attachment (id=205) [details]
gzip of processed source of qlineedit
------- Comment #2 From Chris Lattner 2005-02-19 00:23:13 -------
Here's a reduced testcase:

struct QChar {unsigned short X; QChar(unsigned short); } ;
struct Command {
        Command(QChar c) : c(c) {}
        unsigned int type : 4;
        QChar c;
    };
Command X(QChar('c'));

This is an interaction between bitfields and structures.  I think I know the fix.

-Chris
------- Comment #3 From Chris Lattner 2005-02-19 01:28:07 -------
Fixed, testcase here: Regression/C++Frontend/2005-02-19-BitfieldStructCrash.cpp

Patch here:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050214/024182.html

-Chris

First Last Prev Next    No search results available