Example after patching:

$ clang++ union.cpp -o union
union.cpp:2:3: error: function 'f' declared 'virtual' within a union

  virtual void f(...);
  ^

1 error generated.

g++ output, for reference

$ g++5 union.cpp -o union
union.cpp:2:21: error: function 'f' declared virtual inside a union

  virtual void f(...);
                    ^


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10752

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to