Bug 25831

Summary: [4.0 only] FAIL: gcc.dg/20050922-1.c (test for excess errors)
Product: gcc Reporter: John David Anglin <danglin>
Component: testsuiteAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED DUPLICATE    
Severity: normal CC: danglin, gcc-bugs
Priority: P5    
Version: 4.0.3   
Target Milestone: 4.1.0   
Host: hppa2.0w-hp-hpux11.11 Target: hppa2.0w-hp-hpux11.11
Build: hppa2.0w-hp-hpux11.11 Known to work:
Known to fail: Last reconfirmed: 2006-01-17 22:27:17
Bug Depends on: 24107    
Bug Blocks:    

Description John David Anglin 2006-01-17 22:21:01 UTC
Executing on host: /test/gnu/gcc-4.0/objdir/gcc/xgcc -B/test/gnu/gcc-4.0/objdir/
gcc/ /test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c   -O1 -std=c99  -lm
   -o ./20050922-1.exe    (timeout = 300)
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:8:20: error: stdint.h: N
o such file or directory
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:13: error: parse error b
efore 'f'
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:13: error: parse error b
efore '*' token
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:14: warning: return type
 defaults to 'int'
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c: In function 'f':
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:15: error: 'uint32_t' un
declared (first use in this function)
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:15: error: (Each undecla
red identifier is reported only once
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:15: error: for each func
tion it appears in.)
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:15: error: parse error b
efore 'A'
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c: At top level:
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:18: warning: type defaul
ts to 'int' in declaration of 'A'
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:18: error: 'B' undeclare
d here (not in a function)
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:18: warning: data defini
tion has no type or storage class
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:19: error: parse error b
efore 'for'
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:22: warning: type defaul
ts to 'int' in declaration of 'A'
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:22: error: redefinition
of 'A'
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:18: error: previous defi
nition of 'A' was here
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:22: error: 'S' undeclare
d here (not in a function)
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:23: error: 'k' undeclare
d here (not in a function)
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:23: warning: data defini
tion has no type or storage class
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:25: warning: type defaul
ts to 'int' in declaration of 'm'
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:25: warning: data defini
tion has no type or storage class
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:26: warning: type defaul
ts to 'int' in declaration of 'k'
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:26: error: 'L' undeclare
d here (not in a function)
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:26: warning: data defini
tion has no type or storage class
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:27: warning: type defaul
ts to 'int' in declaration of 'B'
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:28: warning: data defini
tion has no type or storage class
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:29: error: parse error b
efore '}' token
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c: In function 'main':
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:36: error: 'uint32_t' un
declared (first use in this function)
/test/gnu/gcc-4.0/gcc/gcc/testsuite/gcc.dg/20050922-1.c:36: error: parse error b
efore 'S'
compiler exited with status 1

I think "stdint.h" should be changed to "stdlib.h".
Comment 1 Andrew Pinski 2006-01-17 22:27:17 UTC
This was PR 24107 which was only fixed in 4.1.0.
Comment 2 Mark Mitchell 2006-02-27 20:26:17 UTC
This is just a testsuite issue; not release-critical.  (It's OK to fix the bug, though, if someone wants to do that.)
Comment 3 Andrew Pinski 2006-08-15 18:43:14 UTC

*** This bug has been marked as a duplicate of 24107 ***