gcc-bugs@gcc.gnu.org
[Top] [All Lists]

[Bug c/30160] enum reporting sizeof == 0

Subject: [Bug c/30160] enum reporting sizeof == 0
From: "pinskia at gcc dot gnu dot org"
Date: 12 Dec 2006 01:01:40 -0000

------- Comment #2 from pinskia at gcc dot gnu dot org  2006-12-12 01:01 -------
4.0 and above give a better warning message for this issue:
t1.c:12: warning: format '%d' expects type 'int', but argument 2 has type 'long
long int'


This is not a bug in GCC but rather your code in that the enum you have is the
same size as long long.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30160

<Prev in Thread] Current Thread [Next in Thread>