------- Comment #15 from bjoern dot haase at de dot bosch dot com 2006-08-11 07:48 ------- I just realized that yesterday the subject line has been changed.
I'd like to suggest that this new subject line is mis-leading: The compiler doesn't place ANY object in .rodata . It's not necessary to have a "non-trivial" constructor. E.g. have a look at the constructors of the complex class template. There isn't any statement in the constructor. There is only the initialization of the member POD for the real and imaginary parts. If one changes the subject line, I think that "the compiler don't place any const class object to .rodata" would be appropriate. Bjoern. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4131