This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33620] [4.3 regression] internal compiler error: canonical types differ for identical types const QList<QStringList> and const QList<QStringList>
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Oct 2007 23:54:06 -0000
- Subject: [Bug c++/33620] [4.3 regression] internal compiler error: canonical types differ for identical types const QList<QStringList> and const QList<QStringList>
- References: <bug-33620-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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