RFR: 8033057: clang: friend declaration specifying a default argument must be a definition (original) (raw)

Henry Jen henry.jen at oracle.com
Thu Jan 30 14:54:33 PST 2014


Hi,

Please review a fix on an error reported by clang 3.4.

http://cr.openjdk.java.net/~henryjen/jdk9/8033057/webrev/

The fix is to be comforming to C++ 11 spec, quoted,

C++11: ยง8.3.6.4 "If a friend declaration specifies a default argument expression, that declaration shall be a definition and shall be the only declaration of the function or function template in the translation unit."

A working draft for C++ 11 can be found at http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3376.pdf

Cheers, Henry



More information about the hotspot-dev mailing list