[Bug c++/31954] template function cannot create object of forward declared class

2007-05-17 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2007-05-17 15:53 --- I agree as well. -- bangerth at dealii dot org changed: What|Removed |Added CC|

[Bug c++/31954] template function cannot create object of forward declared class

2007-05-16 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2007-05-16 20:56 --- I concur. If you want to forcibly delay the dependence on the complete type until instantiation time, you could use a nested typedef in the class template, like: class NonDependent; template struct foo { type

[Bug c++/31954] template function cannot create object of forward declared class

2007-05-16 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-16 18:23 --- I don't think this is a bug. C0 is not dependent so it has to be complete when the new is parsed in the template. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31954