What's the c++ inline class?

前端 未结 3 934
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 15:41

I accidentally found that the Clang compiler allows :

inline class AAA
{
};

in C++. What\'s this?


PS. I reported this to Clang ma

3条回答
  •  独厮守ぢ
    2021-01-31 15:50

    I got an answer from Clang mailing list. It was a bug: http://llvm.org/bugs/show_bug.cgi?id=3941

    However it looks already been fixed in recent build. Thanks anyway :)

    Here's the conversation: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-March/014207.html

提交回复
热议问题