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
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
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; [...]
3 matches
Mail list logo