[Bug c++/24072] New: diagnostics, oh my!
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Tue Sep 27 01:36:00 GMT 2005
extern volatile signed int i;
volatile unsigned int i = 0;
gets you:
~/ootbc/members/src$ g++ foo.cc
foo.cc:2: error: conflicting declaration 'volatile unsigned int i'
foo.cc:1: error: 'i' has a previous declaration as `volatile int i'
foo.cc:2: error: type mismatch with previous external decl of `volatile unsigned
int i'
foo.cc:1: error: previous external decl of `volatile int i'
foo.cc:2: error: declaration of `volatile unsigned int i'
foo.cc:1: error: conflicts with previous declaration `volatile int i'
--
Summary: diagnostics, oh my!
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24072
More information about the Gcc-bugs
mailing list