[Bug c++/52069] New: ARM: initialization of static member in template struct

2012-01-31 Thread thomas.bet...@rohde-schwarz.com
Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: thomas.bet...@rohde-schwarz.com main.cpp is linked with a shared library libtmpl.so which initializes a static member S::id of a template struct. The expected outcome is

[Bug c++/52069] ARM: initialization of static member in template struct

2012-01-31 Thread thomas.bet...@rohde-schwarz.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52069 --- Comment #1 from Thomas Betker 2012-01-31 15:07:42 UTC --- Created attachment 26536 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26536 bug test source files

[Bug c++/52069] ARM: initialization of static member in template struct

2012-01-31 Thread thomas.bet...@rohde-schwarz.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52069 --- Comment #5 from Thomas Betker 2012-01-31 16:25:02 UTC --- Okay, got it; thanks a lot for the ultra-quick reply! Wouldn't a diagnostic message be helpful here even if it is not required by the standard? After all, the resulting binaries won't

[Bug c++/52069] ARM: initialization of static member in template struct

2012-02-01 Thread thomas.bet...@rohde-schwarz.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52069 --- Comment #8 from Thomas Betker 2012-02-01 10:51:58 UTC --- > There's a reason the standard says "no diagnostic required." > > When compiling libtmpl.so, how is the compiler supposed to know that a > different translation unit which it can't s