~mcf/cproc#68: 
Stop ignoring attributes

Currently we define away all attributes with -D __attribute__(x)= in config.h.

Some attributes like nodiscard and deprecated can safely be ignored, but others like packed, mode, and constructor have important semantics.

Since attributes are already accepted for C2X (n2335), we should at least be parsing them, ignoring the ones that don't change semantics, and producing an error for the ones that do.

n2335 has this to say about ignoring attributes:

Attributes specified by this document can be parsed but ignored by an implementation without changing the semantics of a correct program; the same is not true for attributes not specified by this document.

The currently accepted attributes for C2X are nodiscard, maybe_unused, and deprecated, which can all be ignored.

Status
RESOLVED IMPLEMENTED
Submitter
~mcf
Assigned to
No-one
Submitted
5 years ago
Updated
1 year, 2 days ago
Labels
No labels applied.

~mcf referenced this from #63 5 years ago

~mcf 1 year, 2 days ago

Michael Forney referenced this ticket in commit 731e7a2.

~mcf 1 year, 2 days ago

Michael Forney referenced this ticket in commit 591853a.

~mcf REPORTED IMPLEMENTED 1 year, 2 days ago

Michael Forney referenced this ticket in commit 7c4217e.

Register here or Log in to comment, or comment via email.