------- 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