| 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> |
|---|---|---|
| ||
| Previous by Date: | [Bug c/30160] enum reporting sizeof == 0, richard at beatnik dot com |
|---|---|
| Next by Date: | [Bug tree-optimization/30126] [4.3 Regression] ICE genautomata.c:6060, pinskia at gcc dot gnu dot org |
| Previous by Thread: | [Bug c/30160] enum reporting sizeof == 0, richard at beatnik dot com |
| Next by Thread: | [Bug c/30160] enum reporting sizeof == 0, richard at beatnik dot com |
| Indexes: | [Date] [Thread] [Top] [All Lists] |