Issue Details (XML | Word | Printable)

Key: PCC-396
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Nicolas Joly
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

enum forward declaration does not work

Created: 31/Jul/12 08:25 PM   Updated: 19/Apr/14 05:30 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Environment:
NetBSD lanfeust.sis.pasteur.fr 6.99.10 NetBSD 6.99.10 (LANFEUST) #1: Tue Jul 31 13:53:25 CEST 2012 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST amd64
pcc 1.1.0.DEVEL 20120731 for x86_64-unknown-netbsd6.99.10


 Description  « Hide
enum forward declaration, unlike struct, does not work with pcc. No problem with gcc.

njoly@lanfeust [tmp/pcc]> cat forward.c
enum e;
int f(enum e);

njoly@lanfeust [tmp/pcc]> pcc --version
pcc 1.1.0.DEVEL 20120731 for x86_64-unknown-netbsd6.99.10
njoly@lanfeust [tmp/pcc]> pcc -c forward.c; echo $?
forward.c, line 2: arg 1 enum undeclared
1

njoly@lanfeust [tmp/pcc]> gcc --version
gcc (NetBSD nb2 20110806) 4.5.3
njoly@lanfeust [tmp/pcc]> gcc -c forward.c; echo $?
0


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 31/Jul/12 09:40 PM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson made changes - 19/Apr/14 05:30 PM
Status Open [ 1 ] Closed [ 6 ]
Resolution Won't Fix [ 2 ]