Bugs item #2882772, was opened at 2009-10-20 22:10
Message generated for change (Settings changed) made by wsfulton
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=2882772&group_id=1645
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: parsing
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Juan Hernando (jhernando)
>Assigned to: William Fulton (wsfulton)
Summary: Bogus warning 318 with partial template specialization
Initial Comment:
Hi developers,
The problem I have is related to an spurious warning in template instantiations that involve partially specialized templates.
In the test case provided you can see that a perfectly legal template instantiation is reported as ambiguous by SWIG. There are two template specializations that match and SWIG considers them as equal, but one is indeed more specialized and should be chosen (g++ doesn't complain compiling the very same code).
Additionally, warnfilter doesn't help. It has worked other times for warnings with templates, but not this time. A couple of tries are included in the test case.
----------------------------------------------------------------------
>Comment By: William Fulton (wsfulton)
Date: 2009-10-20 23:25
Message:
Fixed in svn... partial specialization has been overhauled just recently
and your test case now works without any warnings and the correct
specialization is chosen.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=2882772&group_id=1645
|