This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/51676] -Wsuggest-attribute={pure,const} should give line number of declaration, not definition
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 30 Dec 2011 06:33:44 +0000
- Subject: [Bug c/51676] -Wsuggest-attribute={pure,const} should give line number of declaration, not definition
- Auto-submitted: auto-generated
- References: <bug-51676-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51676
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-30 06:33:44 UTC ---
Not all places have both a definition and a declaration. Also we merge the
definition and the declaration giving the DECL internally as just the
definition's location.