This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15674] [4.0 only] [DR214] template argument binding differs between member and static fumctions
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Apr 2005 07:09:31 -0000
- Subject: [Bug c++/15674] [4.0 only] [DR214] template argument binding differs between member and static fumctions
- References: <20040527071518.15674.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-07 07:09 -------
On the mainline we reject this code:
t.cc: In function 'int main()':
t.cc:25: error: call of overloaded 'S(int [5])' is ambiguous
t.cc:16: note: candidates are: void S(T*) [with T = int]
t.cc:19: note: void S(T (&)[n]) [with T = int, long unsigned int n = 5ul]
Which is correct as we now implement DR 214.
Depending on PR 19203 as this only is a 4.0 bug.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |19203
Summary|[DR214] template argument |[4.0 only] [DR214] template
|binding differs between |argument binding differs
|member and static fumctions |between member and static
| |fumctions
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15674