This: class a{ public: static const signed long long int b = 1; static const unsigned long long int c = unsigned long long int(b); };
gets you this: ~/ootbc/asm$ g++ foo.cc foo.cc:4: error: expected primary-expression before unsigned foo.cc:4: error: expected ; before unsigned -- Summary: traditional cast not recognized Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: igodard at pacbell dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36626