struct S { static int val; static int val; }; clang compiles the above sample without complaints. It should say something like: t2.cpp:3:9: error: duplicate member 'val' static int val; ^ t2.cpp:2:9: note: previous declaration is here static int val; ^
This should be an easy fix - and I'm working on fixing this. Thanks for bringing it to my attention Argyrios via email.
This should be an easy fix - and I'm working on it. Thanks for bringing it to my attention Argyrios via email.
Fixed in Clang r112476, by Faisal Vali!