[Bug c++/55632] New: trunk/gcc/cp/decl.c:10614: strange line of code
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Dec 9 19:16:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55632
Bug #: 55632
Summary: trunk/gcc/cp/decl.c:10614: strange line of code
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dcb314@hotmail.com
The line of code in question is
/* Record presence of `static'. */
publicp = (ctype != NULL_TREE
|| storage_class == sc_extern
|| storage_class != sc_static);
This might be better as
/* Record presence of `static'. */
publicp = (ctype != NULL_TREE
|| storage_class != sc_static);
But then the code and the comment don't match up.
Suggest code rework.
More information about the Gcc-bugs
mailing list