--- Comment #1 from bugzilla at hburch dot com 2006-03-29 14:54 ---
Created an attachment (id=11150)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11150&action=view)
Bundle for Linux
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26921
--- Comment #2 from bugzilla at hburch dot com 2006-03-29 14:54 ---
Created an attachment (id=11151)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11151&action=view)
Bundle for Mac OS X
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26921
--- Comment #3 from bugzilla at hburch dot com 2006-03-29 14:59 ---
#include
struct s {
long long int a : 33;
};
struct s foo = {0};
int main(void) {
printf ("%lld\n", foo.a);
return 0;
}
produces the following output using "gcc -Wall -o a a.c" for same syste
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-29 19:25 ---
The warning mess has been corrected:
t.c: In function 'main':
t.c:10: warning: format '%lld' expects type 'long long int', but argument 2 has
type 'long long int:33'
This is not a bug, GCC is correct in warning.