Bug#358755: g++-4.0: G++ drops const int arrays

2006-03-24 Thread Markus Schaber
Package: g++-4.0 Version: 4.0.3-1 Severity: normal Hi, G++ seems to drop const int arrays, while gcc compiles them correctly. See the following example of the two attached files: gcc -Wall -c gen_array.c gcc -Wall -o gen_array gen_array.o ./gen_array array.cc g++ -Wall -o array.cc.o -c

Bug#358755: g++-4.0: G++ drops const int arrays

2006-03-24 Thread Lars Rohwedder
Markus Schaber wrote: G++ seems to drop const int arrays, while gcc compiles them correctly. The bug occurs for every data type, also double or struct arrays. The .o file just does not contain the array: [EMAIL PROTECTED]:~/gcc4bug$ objdump -C -t array.c.o array.c.o: file format

Bug#358755: acknowledged by developer (Re: Bug#358755: g++-4.0: G++ drops const int arrays)

2006-03-24 Thread Markus Schaber
Hi, Falk, Debian Bug Tracking System wrote: 3.5/3 A name having namespace scope (3.3.5) has internal linkage if it is the name of [...] an object or reference that is explicitly declared const and neither explicitly declared extern nor previously declared to have external linkage; [...]