[Bug target/39179] Wrong code in c++ for const members initialized in external file
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Feb 14 16:55:00 GMT 2009
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-02-14 16:55 -------
Single-file testcase, reproduces with a x86_64-pc-mingw32 cross at any
optimization level. get_symbol_constant_value returns zero for K::k.
struct K {
static const unsigned k;
};
extern "C" void abort (void);
int main() {
if ( K::k != 1 )
abort ();
return 1;
}
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-02-14 16:55:18
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39179
More information about the Gcc-bugs
mailing list