[cfe-commits] r132672 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaOverload.cpp test/SemaTemplate/dependent-names.cpp test/SemaTemplate/instantiate-call.cpp www/compatibility.html

Chris Lattner clattner at apple.com
Mon Jun 13 09:13:39 PDT 2011

On Jun 13, 2011, at 8:17 AM, Richard Smith wrote:

>>>     "declaration in dependent base class">;
>>> +def err_not_found_by_two_phase_lookup : Error<"call to function %0 that
>>> is neither " +    "visible in the template definition nor found by
>>> argument dependent lookup">;
>> "argument-dependent" should be hyphenated here. :-)
> Well, now that you mention it... :)
> The C++ standard is inconsistent on the hyphenation (the hyphenated form
> has more appearances) but the unhyphenated form is the form with a
> definition (see [basic.lookup.argdep]p3). And g++ (trying, but failing, to
> be helpful) has a diagnostic 'argument dependent lookup finds ClassName'.
> I think the message is clear either way: I'd be happy with any colour for
> this bikeshed. But I propose no change. ;)

argument-dependent (with hyphenation) is proper english :)


More information about the cfe-commits mailing list