This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13648] New: [tree-ssa] offsetof() with a nested struct member fails to compile in a constant-expression


This appears to be a new regression on the tree-ssa branch.  Writing:

const int i = offsetof(A, b.c);

gives this error:

error: `.' cannot appear in a constant-expression

The problem also appears to be C++-specific.

-- 
           Summary: [tree-ssa] offsetof() with a nested struct member fails
                    to compile in a constant-expression
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bryner at brianryner dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]