[cfe-commits] r151307 - in /cfe/trunk: include/clang/Basic/TokenKinds.def include/clang/Parse/Parser.h lib/Parse/ParseDeclCXX.cpp lib/Parse/ParsePragma.cpp lib/Parse/ParseStmt.cpp lib/Parse/Parser.cpp test/Sema/pragma-pack-2.c test/SemaCXX/pragma
Rafael EspĂndola
rafael.espindola at gmail.com
Fri Feb 24 06:34:29 PST 2012
This doesn't work for C. For example, in
struct A {
#pragma GCC visibility push(protected)
#pragma GCC visibility pop
};
we produce
home/espindola/llvm/test.c:2:15: error: type name requires a specifier
or qualifier
#pragma GCC visibility push(protected)
and in c++, we don't produce an error on
struct A {
#pragma GCC visibility push(protected)
};
Should we?
Cheers,
Rafael
More information about the cfe-commits
mailing list