[Bug c++/82882] [8 regression] ICE Segmentation fault

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 13 06:55:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82882

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Happens a lot with QT code:

qt5/QtCore/qstring.h:
 174 #define QStringLiteral(str) \                                              
 175     ([]() Q_DECL_NOEXCEPT -> QString { \                                   
 176         enum { Size = sizeof(QT_UNICODE_LITERAL(str))/2 - 1 }; \           
 177         static const QStaticStringData<Size> qstring_literal = { \         
 178             Q_STATIC_STRING_DATA_HEADER_INITIALIZER(Size), \               
 179             QT_UNICODE_LITERAL(str) }; \                                   
 180         QStringDataPtr holder = { qstring_literal.data_ptr() }; \          
 181         const QString qstring_literal_temp(holder); \                      
 182         return qstring_literal_temp; \                                     
 183     }()) \                                                                 
 184     /**/                                                                   
 185


More information about the Gcc-bugs mailing list