[cfe-commits] [patch] Error if a decl is redeclared with a different explicit visibility
rafael.espindola at gmail.com
Mon Apr 30 18:38:31 PDT 2012
> Unfortunately it looks like the canonical definition is not sufficient
> for function templates. I don't fully understand our representation of
> function templates, so it is possible this is just hiding a bug
> somewhere. If not, the attached patch fixes the included testcase. Let
> me know what do you think.
Douglas Gregor suggested using
D->getMostRecentDecl()->getPreviousDecl(). An updated patch is
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1945 bytes
Desc: not available
More information about the cfe-commits