"Unused private field" build failure(s) — clang 3.6.0

clang -Wall -Werror will fail because bar is private (by default) and never used. g++ does not complain here.
class foo
{
    int bar;
};

No error detected for version 3.6.0