This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

"typename" and Internal compiler error 90


The following program causes an
  gub.C: Internal compiler error 90.
  gub.C: Please submit a full bug report to `egcs-bugs@cygnus.com'.
for 
  gcc version egcs-2.90.18 971122 (gcc2-970802 experimental)
bootstrapped 
  under sparc-sun-solaris2.5.1
at those two lines, where "typename" is commented.

---------- cut here ----------------------------------------------------
#include <vector>

template <class T>
class TPROGRAM 
    {
    typedef vector< T > ITEMS;

    class const_iterator 
        {
        /*typename*/ ITEMS::const_iterator i;

        const_iterator(const /*typename*/ ITEMS::const_iterator i2) {
            i=i2;
            }
        };
    };
---------- cut here ----------------------------------------------------

As this very same program compiles fine under gcc 2.7.2.1 (and there are
probably lots of code out there _not_ yet using "typename") this really
should be fixed before the first release, shouldn't it?

Ciao,
Gerald
-- 
Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]