[Bug target/31674] [4.3 Regression] internal consistency failure on ia64 with -O
tbm at cyrius dot com
gcc-bugzilla@gcc.gnu.org
Mon Apr 23 21:54:00 GMT 2007
------- Comment #2 from tbm at cyrius dot com 2007-04-23 22:54 -------
Slightly more reduced:
class QString
{
public:QString ();
QString & operator+= (const QString & str);
};
class Qt
{
};
template < class T > class QValueListIterator
{
};
template < class T > class QValueList
{
public:typedef QValueListIterator < T > iterator;
const T & operator[] (long unsigned int i) const
{
}
};
class QNumberSection
{
public: QNumberSection (bool separat):
sep (separat)
{
}
bool separator ()
{
return sep;
}
private:
int act:7;
bool sep:1;
};
class ExtDateTimeEditorPrivate
{
public:
QString separator ()
{
}
QNumberSection section (int idx)
{
return sections[idx];
}
private:
QValueList < QNumberSection > sections;
};
void
ExtDateTimeEditor()
{
ExtDateTimeEditorPrivate *d;
QString txt;
for (unsigned int i = 0; i < 10; ++i)
{
if (d->section (i).separator ())
txt += d->separator ();
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31674
More information about the Gcc-bugs
mailing list