This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ICE 980331, -finline bug


... while compiling KDE ...
... egcs-current, Linux.
... gcc -O2 -E | gcc -O2 failed to exhibit the problem. :-(

          {
            /* Make sure we don't drop the non-local flag, as the old code
               would rely on it. */
            int nl = TREE_NONLOCAL_FLAG (rhs);
            /* We don't need the type of this node. */
            rhs = TREE_VALUE (rhs);
            my_friendly_assert (TREE_NONLOCAL_FLAG (rhs) == nl, 980331);
          }

# g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../kdecore -I../kdeui -I../kfmlib -I/usr/X1 1R6/include/qt -I/usr/X11R6/include -g -O2 -Wall -Wp,-MD,.deps/kfiledetaillist.p -c -fPIC -DPIC kfiledetaillist.cpp
# /usr/X11R6/include/qt/qtstream.h: In function `class QTSManip setw(int)':
# In file included from ../kdecore/kconfigdata.h:35,
# from ../kdecore/kconfigbase.h:71,
# from ../kdecore/kconfig.h:53,
# from ../kdecore/kapp.h:151,
# from kfiledetaillist.cpp:26:
# /usr/X11R6/include/qt/qtstream.h:212: Internal compiler error 980331.
# /usr/X11R6/include/qt/qtstream.h:212: Please submit a full bug report to
# `egcs-bugs@cygnus.com'.

... this is the code which got complained about:

inline QTSManip setw( int w )
{
/* /usr/X11R6/include/qt/qtstream.h:212 is here: */
	    QTSMFI func = &QTextStream::width;
		return QTSManip(func,w);
}

... and, (almost) needless to say, -fno-inline made the error go away, and
the file compiled perfectly.

-- 
Matthias Urlichs
noris network GmbH


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]