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]

Re: Internal compiler error 980711 ( egcs 1.1 )


On Thu, 5 Nov 1998, Ulf Larsson wrote:
> The following illegal code generates internal
> compile rerrror. 
> 
> namespace A { }
> struct B {};
> 
> int main() {
>   typedef A::C< B > C_t;
>   return 0;
> }

The current CVS snapshots report

  x.cc: In function `int main()':
  x.cc:5: warning: ANSI C++ forbids typedef which does not specify a type
  x.cc:5: parse error before `;'

instead.

Thanks for your report!
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]