[Bug c++/36961] fails to identify template

2021-08-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961 Jonathan Wakely changed: What|Removed |Added Resolution|FIXED |DUPLICATE --- Comment #11 from Jonatha

[Bug c++/36961] fails to identify template

2021-08-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961 Andrew Pinski changed: What|Removed |Added Known to work||7.1.0 Target Milestone|---

[Bug c++/36961] fails to identify template

2014-08-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961 --- Comment #9 from Jonathan Wakely --- For completeness, trunk says this for the reduced testcase in comment 7: d.cc: In function ‘int main()’: d.cc:17:12: error: no matching function for call to ‘f(foo)’ f(foo()); ^ d.cc:12:6:

[Bug c++/36961] fails to identify template

2014-08-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid Status|UNCON

[Bug c++/36961] fails to identify template

2014-08-11 Thread vanyacpp at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961 Ivan Sorokin changed: What|Removed |Added CC||vanyacpp at gmail dot com --- Comment #7

[Bug c++/36961] fails to identify template

2008-07-28 Thread igodard at pacbell dot net
--- Comment #6 from igodard at pacbell dot net 2008-07-29 02:32 --- FWIW, Visual Studio has been reported to me as accepting the test case too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961

[Bug c++/36961] fails to identify template

2008-07-28 Thread igodard at pacbell dot net
--- Comment #5 from igodard at pacbell dot net 2008-07-29 01:07 --- Please confirm that it is an error with your associates. First, Comeau likes it. Second, other template functions have no trouble identifying a template base class given a derived class. What is different about this

[Bug c++/36961] fails to identify template

2008-07-28 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-07-29 01:01 --- The error is correct as the type of v2 is foo so it cannot figure out the rest of the template agruments from that type. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug c++/36961] fails to identify template

2008-07-28 Thread igodard at pacbell dot net
--- Comment #3 from igodard at pacbell dot net 2008-07-29 00:54 --- p.s. Comeau likes the (correct, second) test case. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961

[Bug c++/36961] fails to identify template

2008-07-28 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-07-29 00:53 --- >A x3 = att(foo); foo is a class. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961

[Bug c++/36961] fails to identify template

2008-07-28 Thread igodard at pacbell dot net
--- Comment #1 from igodard at pacbell dot net 2008-07-29 00:52 --- Oops - sorry, posted wrong test case: enum A{a}; enum B{b}; enum C{c}; enum D{d}; class bottom {}; template class attr { public: E v; operator E() { return v;} }; template class node, typename attr, typename n