[Bug c++/58354] variadic template ambiguous

2023-07-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58354

Richard Biener  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #8 from Richard Biener  ---
Fixed.

[Bug c++/58354] variadic template ambiguous

2021-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58354

Andrew Pinski  changed:

   What|Removed |Added

 CC||vexocide at gmail dot com

--- Comment #7 from Andrew Pinski  ---
*** Bug 59135 has been marked as a duplicate of this bug. ***

[Bug c++/58354] variadic template ambiguous

2021-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58354

Andrew Pinski  changed:

   What|Removed |Added

 CC||oknenavin at outlook dot com

--- Comment #6 from Andrew Pinski  ---
*** Bug 90642 has been marked as a duplicate of this bug. ***

[Bug c++/58354] variadic template ambiguous

2021-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58354

Andrew Pinski  changed:

   What|Removed |Added

 CC||lumosimann at gmail dot com

--- Comment #5 from Andrew Pinski  ---
*** Bug 89085 has been marked as a duplicate of this bug. ***

[Bug c++/58354] variadic template ambiguous

2021-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58354

Andrew Pinski  changed:

   What|Removed |Added

 CC||rbock at eudoxos dot de

--- Comment #4 from Andrew Pinski  ---
*** Bug 77449 has been marked as a duplicate of this bug. ***

[Bug c++/58354] variadic template ambiguous

2021-01-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58354

Jonathan Wakely  changed:

   What|Removed |Added

   Target Milestone|--- |10.2
   Keywords||rejects-valid
 CC||jason at gcc dot gnu.org

--- Comment #3 from Jonathan Wakely  ---
Fixed by r11-1571 and r10-8343: Refinements to "more constrained".

Jason, was the change to tsubst_pack_expansion a drive-by fix that resolved
this bug?

* pt.c (tsubst_pack_expansion): Fix getting a type parameter
pack.


The rest of the commit is related to constrained functions, which aren't
relevant here.

Should we add this testcase before closing the bug?

[Bug c++/58354] variadic template ambiguous

2021-01-28 Thread 1zeeky at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58354

--- Comment #2 from 1zeeky at gmail dot com ---
This has been fixed as of gcc 10.2.

[Bug c++/58354] variadic template ambiguous

2014-11-19 Thread officesamurai at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58354

Mikhail Kremnyov  changed:

   What|Removed |Added

 CC||officesamurai at gmail dot com

--- Comment #1 from Mikhail Kremnyov  ---
There is a simpler case.

test.cpp:
template 
void foo(T2, Types...)
{
}

template 
void foo(int, Types...)
{
}

int main()
{
  foo(1, 2);
}

Command line:
g++ -std=c++11 test.cpp -o test

Output:
test.cpp: In function ‘int main()’:
test.cpp:13:17: error: call of overloaded ‘foo(int, int)’ is ambiguous
   foo(1, 2);
 ^
test.cpp:13:17: note: candidates are:
test.cpp:2:6: note: void foo(T2, Types ...) [with T1 = void; T2 = int; Types =
{int}]
 void foo(T2, Types...)
  ^
test.cpp:7:6: note: void foo(int, Types ...) [with T1 = void; Types = {int}]
 void foo(int, Types...)

I tried this with versions 4.8.1, 4.9.1, 4.9.2 - same result.
Clang has no problems with this code.

[Bug c++/58354] variadic template ambiguous

2013-09-07 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58354

Paolo Carlini  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2013-09-07
 Ever confirmed|0   |1