This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54987] New: missed ambiguity in template function call
- From: "afalin at xakep dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 19 Oct 2012 13:12:19 +0000
- Subject: [Bug c++/54987] New: missed ambiguity in template function call
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54987
Bug #: 54987
Summary: missed ambiguity in template function call
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: afalin@xakep.ru
Created attachment 28491
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28491
minimal test-case
Call to 'foo' is really ambiguous, both versions need for cast.
Tested with:
1) gcc-4.4.7, gcc-4.6.3, gcc-4.8.0 (r192610) - no errors or warnings
2) clang-3.1, MS C compiler 8.0 - "error: call to 'foo' is ambiguous"
If make_type is not template - gcc error's with ambiguity.