Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!orion.oac.uci.edu!uci-ics!gateway From: rfg@paris.ics.uci.edu (Ronald Guilmette) Newsgroups: comp.lang.c++ Subject: cfront 2.0 bug 900321_01 Message-ID: <26073288.8306@paris.ics.uci.edu> Date: 21 Mar 90 07:51:36 GMT Organization: UC Irvine Department of ICS Lines: 25 // cfront 2.0 bug 900321_01 // cfront flags two errors for the following code on the lines indicated. // I can see no reason for it to do so, and the C++ Reference Manual says // nothing about this. // Furthermore, if the typedef for type T is changed to define T as a // builtin type (e.g. "int" rather that "class c") the errors do not occur. typedef class c T; typedef T array_of_Ts[]; typedef T array_of_3_Ts[3]; array_of_Ts *p1; array_of_3_Ts *p2; void function () { delete p1; // gets bogus error delete p2; // gets bogus error } int main () { return 0; }