This is the mail archive of the
mailing list for the GCC project.
New bug or Bug 5786?
- From: Christopher Eltschka <celtschk at web dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 07 Nov 2006 23:17:55 +0100
- Subject: New bug or Bug 5786?
I hope this is the right list for this question.
I found a bug in g++ (gcc version 4.0.2 20050901 (prerelease) (SUSE
Linux)), and I don't know if it is new, and I should add it to bugzilla.
The failing code is
template<class T, int n>
void foo(T (&)[n], T (&)[n])
template<class T, int n1, int n2>
void foo(T (&)[n1][n2], T (&)[n1][n2])
and it gives the following error message:
arraybug.cc: In function ‘int main()’:
arraybug.cc:14: error: call of overloaded ‘foo(int , int )’
arraybug.cc:2: note: candidates are: void foo(T (&)[n], T (&)[n]) [with
T = int , int n = 2]
arraybug.cc:7: note: void foo(T (&)[n1][n2], T
(&)[n1][n2]) [with T = int, int n1 = 2, int n2 = 2]
I've been searching the bug database, and found Bug 5786, of which I'm
however not sure if this is really the same bug. So should I report this
as new bug, or is it just Bug 5786 (or maybe another bug which I
Thanks in advance.