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]

Bug report: internal compiler error on (incorrect) array initialization



Bug report: internal compiler error on (incorrect) array initialization

$ cat yoho.cc

main()
{
   int *a = new int[ 4 ] = { {1, 2}, {3, 4} };
} 

$ g++ yoho.cc
yoho.cc: In function `int main()':
yoho.cc:4: Internal compiler error.
yoho.cc:4: Please submit a full bug report.
yoho.cc:4: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport>
for instructions.

$ g++ --version
2.95.2

$ uname -mrsv
Linux 2.2.7 #13 Tue Mar 7 10:30:20 CET 2000 i686


Hope this helps,

John Schavemaker

-- 
dr. J.G.M. Schavemaker
Electro-Optical Systems, TNO Physics and Electronics Laboratory          
P.O. Box 96864 NL-2509 JG The Hague, The Netherlands 
Phone: +31 70 374 0860 Fax: +31 70 374 0654 Email:
Schavemaker@fel.tno.nl

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