[Bug c++/12672] Evals template defaults args that it should not

2021-09-13 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 Patrick Palka changed: What|Removed |Added Target Milestone|--- |12.0 Resolution|---

[Bug c++/12672] Evals template defaults args that it should not

2021-08-31 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 --- Comment #15 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:f1e7319956928712e8bf4893ebdfeeb6441099ee commit r12-3271-gf1e7319956928712e8bf4893ebdfeeb6441099ee Author: Patrick Palka Date: T

[Bug c++/12672] Evals template defaults args that it should not

2021-08-25 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 Patrick Palka changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c++/12672] Evals template defaults args that it should not

2017-01-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Known to f

[Bug c++/12672] Evals template defaults args that it should not

2016-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 --- Comment #13 from Jonathan Wakely --- (In reply to Ivan Godard from comment #11) > IANALL, but the portions of the standard cited by Jonathan all refer to > argument evaluation, Maybe you're confusing template arguments with function argument

[Bug c++/12672] Evals template defaults args that it should not

2016-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 --- Comment #12 from Jonathan Wakely --- Template argument deduction requires substituting the template arguments where they appear. If that is in the return type, it gets substituted into the return type. If that causes a substitution error then

[Bug c++/12672] Evals template defaults args that it should not

2016-01-15 Thread igodard at pacbell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 --- Comment #11 from Ivan Godard --- OP here; better late than never :-) IANALL, but the portions of the standard cited by Jonathan all refer to argument evaluation, while the problem here is in the result type. Why is the result even being cons

[Bug c++/12672] Evals template defaults args that it should not

2016-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 --- Comment #10 from Jonathan Wakely --- (In reply to Ivan Godard from comment #0) > The problem seems to be that the compiler is not first pruning all > candidates with the wrong number of formals before doing type matching. Which is correct. T

[Bug c++/12672] Evals template defaults args that it should not

2016-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 --- Comment #9 from Jonathan Wakely --- This seems to be: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1635 http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#2008 might be related, and seems to agree with GCC.

[Bug c++/12672] Evals template defaults args that it should not

2016-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2009-04-16 16:42:54 |2016-1-15 --- Comment #8 from Jonathan

[Bug c++/12672] Evals template defaults args that it should not

2016-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 --- Comment #7 from Jonathan Wakely --- EDG rejects the reduced examples in comments 3 and 4 (the original testcase doesn't compile any more for other reasons due to the preprocessed library headers).

[Bug c++/12672] Evals template defaults args that it should not

2016-01-14 Thread igodard at pacbell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 --- Comment #6 from Ivan Godard --- Twelve years and counting? :-)

[Bug c++/12672] Evals template defaults args that it should not

2009-04-16 Thread igodard at pacbell dot net
--- Comment #5 from igodard at pacbell dot net 2009-04-16 17:02 --- Wow! Six years and counting! This might be my oldest outstanding bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672