While playing around with contradicting type and variable attributes I may have
stumbled across a g++ 3.4/4.0 regression.

Here is a short example - see the attachment for full details.

typedef struct {
    char dummy;
} type01c_t
__attribute__((aligned(8)))
__attribute__((aligned(4)));


In any case, some documentation is clearly needed for this and similar
attributes cases, and a warning also seems reasonable (at -Wall level).

-- 
           Summary: Contradicting type and variable attributes (possible
                    regression)
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: markus at oberhumer dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18069

Reply via email to