https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98360
ensadc at mailnesia dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ensadc at mailnesia dot com --- Comment #1 from ensadc at mailnesia dot com --- I think this is reject-valid in clang++. [expr.prim.id.general]/2 ( http://eel.is/c++draft/expr.prim.id.general#2 ): > An id-expression that denotes a non-static data member or non-static member > function of a class can only be used: > > - [...] > - if that id-expression denotes a non-static data member and it appears in an > unevaluated operand.