]> granicus.if.org Git - clang/commit
Sema: Allow aliases to have incomplete type
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 9 Jul 2014 17:15:52 +0000 (17:15 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 9 Jul 2014 17:15:52 +0000 (17:15 +0000)
commit48f80aa9abf55d5a2e195e2e8a58fb6e12f3887c
treef196cbdc81b0cc678763a234bf2c6737155b3634
parent4a3ff910f3c69b636b760ddc9a8968902574d6d6
Sema: Allow aliases to have incomplete type

gcc supports this behavior and it is pervasively used inside the Linux
kernel.

Note that both gcc and clang will reject code that attempts to do this
in a C++ language mode.

This fixes PR17998.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212631 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/attr-alias-elf.c