egcs-1.1.1-pre-release bug?
Thanate Dhirasakdanon
boat@control.ee.eng.chula.ac.th
Fri Nov 20 11:49:00 GMT 1998
Hello,
The following simple program produced
a compilation error:
--- ttt.cc ------------
int main()
{
unsigned int *i(new unsigned int[4](0));
delete[] i;
return(0);
}
-----------------------
[~/ttt]$ g++ -o ttt ttt.cc
ttt.cc: In function `int main()':
ttt.cc:3: request for member `__ct' in `*{anon}', which is of
non-aggregate type `unsigned int'
[~/ttt]$ g++ -v
Reading specs from
/usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.58/specs
gcc version egcs-2.91.58 19981101 (egcs-1.1.1 pre-release)
-----------------------
The program compiled fine on egcs-1.0.3 and
gcc-2.7.2.3.
Is this a (known) bug?
Thanate.
More information about the Gcc-bugs
mailing list