[Bug c++/33620] [4.3 regression] internal compiler error: canonical types differ for identical types const QList<QStringList> and const QList<QStringList>
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Fri Oct 19 23:54:00 GMT 2007
------- Comment #4 from bangerth at dealii dot org 2007-10-19 23:54 -------
This is the shortest I can come up with:
----------------------
template <typename T>
struct __attribute__((visibility("default"))) List {};
int bar(List<int> args);
bool test(const List<int> &);
int i = bar(List<int>());
bool test(const List<int> &) {}
---------------------
tmp/bangerth> /tmp/bangerth/bin/gcc-mainline/bin/c++ -c x.cc
x.cc: In function 'bool test(const List<int>&)':
x.cc:9: internal compiler error: canonical types differ for identical types
const List<int> and const List<int>
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33620
More information about the Gcc-bugs
mailing list