Bug 12448 - .struct in included file causes assertion failure
Summary: .struct in included file causes assertion failure
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.20
: P2 normal
Target Milestone: ---
Assignee: unassigned
Depends on:
Reported: 2011-01-27 23:46 UTC by ughoavgfhw
Modified: 2011-02-14 01:49 UTC (History)
1 user (show)

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description ughoavgfhw 2011-01-27 23:46:18 UTC
I was using gas to compile a program. In the program, I use .include to include a file with some constant definitions in it. I wanted to use .struct in the included file, but when I did, I received the following error:

filename.s:57: Internal error!
Assertion failure in integer_constant at /Users/username/Downloads/binutils-2.20.1/gas/expr.c line 530.
Please report this bug.

The .struct I was using works fine in the main file. It only fails when put in the included file. I am using binutils 2.20.1 on Mac OS 10.6.6. This is not Apple's implementation of gas. I compiled a new version of binutils targeted for i586-elf.
Comment 1 Alan Modra 2011-01-31 04:05:57 UTC
Please attach a testcase to this bug report