This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-2.96 19990522: Unimplemented template feature used in libstdc++ 3 snapshot
- To: egcs-bugs at cygnus dot com
- Subject: gcc-2.96 19990522: Unimplemented template feature used in libstdc++ 3 snapshot
- From: Raja R Harinath <harinath at cs dot umn dot edu>
- Date: 22 May 1999 18:59:27 -0500
Hi,
The following is an extreme simplification of some code from a recent
libstdc++ 3 snapshot.
/*start foo.cc*/
template<class T1, class T2> class foo;
//template<class T> struct foo<T, T>;
template<class T> struct foo<T,typename T::bar>;
/*end foo.cc*/
The compiler output is
$ c++ -c foo.cc
foo.cc:5: sorry, not implemented: testing typename_type for template parms
foo.cc:5: confused by earlier errors, bailing out
$ c++ -v
Reading specs from .../lib/gcc-lib/i686-pc-linux-gnu/gcc-2.96/specs
gcc version gcc-2.96 19990522 (experimental)
The part of code was changed in
1999-05-20 Mark Mitchell <mark@codesourcery.com>
[snip]
* pt.c (for_each_template_parm): Rework to match documentation.
Don't be fooled by a COMPONENT_REF with no TREE_TYPE.
- Hari
--
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash