From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.1.3 (X11; Linux i686; U;) Gecko/20020206 Description of problem: When defining a global const variable, compiling it with g++ with optimization and debugging turned on, unresolved symbold are generated. Version-Release number of selected component (if applicable): 3.1-0.21 How reproducible: Always Steps to Reproduce: $ cat foo.cpp const char foo[] = "bar"; $ g++ -g -O2 -c foo.cpp $ nm foo.o U .LC0 Actual Results: An unresolved symbol. Expected Results: No unresolved symbols. Additional info: Leaving out debugging info, optimization or const qualifier produces expected result.
This should be fixed in 3.1-0.22.