[Bug c++/49637] template function overload incorrectly ambiguous

2011-09-26 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 Jason Merrill changed: What|Removed |Added Status|RESOLVED|SUSPENDED Last reconfirmed|

[Bug c++/49637] template function overload incorrectly ambiguous

2011-07-05 Thread timothyjgiese at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 Timothy J Giese changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/49637] template function overload incorrectly ambiguous

2011-07-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 --- Comment #10 from Jason Merrill 2011-07-05 19:51:02 UTC --- This is related to http://www.open-std.org/JTC1/SC22/WG21/docs/cwg_defects.html#214

[Bug c++/49637] template function overload incorrectly ambiguous

2011-07-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 --- Comment #9 from Jason Merrill 2011-07-05 19:48:14 UTC --- (In reply to comment #8) > OH. I think I see what you are saying here. I now think that you're saying > "the partial ordering will try to deduce the arguments regardless of whether

[Bug c++/49637] template function overload incorrectly ambiguous

2011-07-05 Thread timothyjgiese at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 --- Comment #8 from Timothy J Giese 2011-07-05 18:02:26 UTC --- (In reply to comment #7) > (In reply to comment #5) > > (In reply to comment #1) > > > Created attachment 24686 [details] > > > minimal test case > > > > IMO this is ambiguous. > >

[Bug c++/49637] template function overload incorrectly ambiguous

2011-07-05 Thread timothyjgiese at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 --- Comment #7 from Timothy J Giese 2011-07-05 17:34:11 UTC --- (In reply to comment #5) > (In reply to comment #1) > > Created attachment 24686 [details] > > minimal test case > > IMO this is ambiguous. > When doing partial ordering, in both c

[Bug c++/49637] template function overload incorrectly ambiguous

2011-07-05 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 --- Comment #6 from Jonathan Wakely 2011-07-05 17:28:09 UTC --- (In reply to comment #3) > struct S { typedef int iterator; }; > template void F( T, U ) {} > template void F( T, int ) {} > int main() > { > S::iterator i(42); >

[Bug c++/49637] template function overload incorrectly ambiguous

2011-07-05 Thread schaub.johannes at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 Johannes Schaub changed: What|Removed |Added CC||schaub.johannes at |

[Bug c++/49637] template function overload incorrectly ambiguous

2011-07-05 Thread timothyjgiese at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 --- Comment #4 from Timothy J Giese 2011-07-05 16:04:29 UTC --- icpc (ICC) 11.1 20091130 compiles the original minimal test case without warning nor error.

[Bug c++/49637] template function overload incorrectly ambiguous

2011-07-05 Thread timothyjgiese at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 --- Comment #3 from Timothy J Giese 2011-07-05 15:40:59 UTC --- The original minimal test case also fails to compile with g++ 4.5.1. I can confirm that the following compiles fine with g++ 4.6.0, 4.5.1, and 4.4.3. struct S { typedef int iterato

[Bug c++/49637] template function overload incorrectly ambiguous

2011-07-05 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 Jonathan Wakely changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #2

[Bug c++/49637] template function overload incorrectly ambiguous

2011-07-04 Thread timothyjgiese at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49637 --- Comment #1 from Timothy J Giese 2011-07-05 02:04:49 UTC --- Created attachment 24686 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24686 minimal test case