[cfe-commits] [patch] Error if a decl is redeclared with a different explicit visibility

Rafael EspĂ­ndola 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
attached.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 1945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120430/10bd8d9f/attachment.obj>


More information about the cfe-commits mailing list