[cfe-commits] [PATCH] fix for PR7754 - extern "C++" template..
Douglas Gregor
dgregor at apple.com
Mon Aug 23 07:44:11 PDT 2010
On Aug 19, 2010, at 3:35 AM, Francois Pichet wrote:
> Hi
>
> This is a patch to fix PR7754. clang couldn't compile this:
> extern "C++" template <class T> int pr7754(T param);
This definitely looks like the right approach, but there are a number of other kinds of declarations that should also be handled this way. For example,
namespace N { int value; }
extern "C++" using N::value;
I think this just means duplicating the keyword checks from ParseExternalDeclaration in ParseLinkage, although perhaps there is a better way.
- Doug
More information about the cfe-commits
mailing list