[llvm-bugs] [Bug 24892] invalid error on 'virtual' inside extern C
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 21 11:44:33 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24892
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
'extern "C"' has no effect on whether 'virtual' is a keyword. GCC is allowing
your code because it has a bug (it ignores decl-specifiers on anonymous
struct/union members). It is not declaring a class member named 'virtual'.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150921/8226dd9f/attachment.html>
More information about the llvm-bugs
mailing list