I was playing around with __attribute__((const)), not realizing that what I
actually should have used was __attribute__((pure)). But regardless of the
fact that I was using these attributes incorrectly, gcc obviously shouldn't
segfault. First comment will have the preprocessed source that generates this
segfault.
I tested gcc 4.4.3 and gcc 4.6 svn r158591. It probably crashes on all
intermediate versions; I just didn't have them around to test.
--
Summary: Segfault when using __attribute__((const)), versions
4.4.3 and 4.6
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: darkshikari at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43845