]> granicus.if.org Git - clang/commit
Sema: Consider it an error to apply __builtin_offsetof to a member in a virtual base
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 15 Oct 2013 06:28:23 +0000 (06:28 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 15 Oct 2013 06:28:23 +0000 (06:28 +0000)
commitedb5fdfb732d9b05f7f3c3248edea7b14331f4a4
treec17332498819a399629ef73466bb757f9dd8bfbe
parent656465d6743e24022b28f831f1fe249f69b8626e
Sema: Consider it an error to apply __builtin_offsetof to a member in a virtual base

icc 13 and g++ 4.9 both reject this while we would crash.

Fixes PR17578.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192674 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/SemaCXX/offsetof.cpp