https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961
Jonathan Wakely changed:
What|Removed |Added
Resolution|FIXED |DUPLICATE
--- Comment #11 from Jonatha
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961
Andrew Pinski changed:
What|Removed |Added
Known to work||7.1.0
Target Milestone|---
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:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961
Jonathan Wakely changed:
What|Removed |Added
Keywords||rejects-valid
Status|UNCON
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961
Ivan Sorokin changed:
What|Removed |Added
CC||vanyacpp at gmail dot com
--- Comment #7
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
11 matches
Mail list logo