]> granicus.if.org Git - clang/commit
Avoid using the "unnamed struct field" extension (enabled with -fms-extensions)....
authorSteve Naroff <snaroff@apple.com>
Wed, 12 Mar 2008 21:09:20 +0000 (21:09 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 12 Mar 2008 21:09:20 +0000 (21:09 +0000)
commit39bbd9f5918950436821585afc6244b1fe2c7295
tree2e6fe31c6a90839ea03a82fb475031fbef8a7e78
parent199e1a071d8a1fdfb18dabad3c751bdc8b2f4487
Avoid using the "unnamed struct field" extension (enabled with -fms-extensions). This feature/extension silently does the wrong thing in g++. As far as I can tell, g++ simply throws the field away entirely (note that it works fine with gcc). Since I am now always casting the object (for other reasons), accessing protected/public fields simply requires the cast refer to the defining class. This solution is simpler all around (thanks to Chris for suggesting it).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48302 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/RewriteTest.cpp