Issue Details (XML | Word | Printable)

Key: PCC-378
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Iain Hibbert
Votes: 0
Watchers: 0
Operations

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

placing a pointer to an undefined struct in specific section fails

Created: 01/Sep/11 10:14 PM   Updated: 02/Sep/11 05:38 PM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

Environment: NetBSD/i386


 Description  « Hide
The following code example

struct foo;
struct foo *foo __attribute__((__section__(".data.foo")));

when compiled with pcc fails with an error

  test.c, line 3: unknown structure/union/enum

 All   Comments   Change History      Sort Order: Descending order - Click to sort in ascending order
Anders Magnusson added a comment - 02/Sep/11 05:38 PM
Fixed.