public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55632] New: trunk/gcc/cp/decl.c:10614: strange line of code
@ 2012-12-09 19:16 dcb314 at hotmail dot com
  2013-02-26 10:33 ` [Bug c++/55632] " paolo.carlini at oracle dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2012-12-09 19:16 UTC (permalink / raw)
  To: gcc-bugs


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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/55632] trunk/gcc/cp/decl.c:10614: strange line of code
  2012-12-09 19:16 [Bug c++/55632] New: trunk/gcc/cp/decl.c:10614: strange line of code dcb314 at hotmail dot com
@ 2013-02-26 10:33 ` paolo.carlini at oracle dot com
  2013-02-26 14:05 ` paolo at gcc dot gnu.org
  2013-02-26 14:06 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-02-26 10:33 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55632

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-02-26
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-02-26 10:32:20 UTC ---
Let's resolve this.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/55632] trunk/gcc/cp/decl.c:10614: strange line of code
  2012-12-09 19:16 [Bug c++/55632] New: trunk/gcc/cp/decl.c:10614: strange line of code dcb314 at hotmail dot com
  2013-02-26 10:33 ` [Bug c++/55632] " paolo.carlini at oracle dot com
@ 2013-02-26 14:05 ` paolo at gcc dot gnu.org
  2013-02-26 14:06 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo at gcc dot gnu.org @ 2013-02-26 14:05 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55632

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2013-02-26 14:04:59 UTC ---
Author: paolo
Date: Tue Feb 26 14:04:47 2013
New Revision: 196284

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196284
Log:
2013-02-26  David Binderman  <dcb314@hotmail.com>

    PR c++/55632
    * decl.c (grokdeclarator): Tidy publicp assignment.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/55632] trunk/gcc/cp/decl.c:10614: strange line of code
  2012-12-09 19:16 [Bug c++/55632] New: trunk/gcc/cp/decl.c:10614: strange line of code dcb314 at hotmail dot com
  2013-02-26 10:33 ` [Bug c++/55632] " paolo.carlini at oracle dot com
  2013-02-26 14:05 ` paolo at gcc dot gnu.org
@ 2013-02-26 14:06 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-02-26 14:06 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55632

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.8.0

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-02-26 14:05:44 UTC ---
Done.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-26 14:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-09 19:16 [Bug c++/55632] New: trunk/gcc/cp/decl.c:10614: strange line of code dcb314 at hotmail dot com
2013-02-26 10:33 ` [Bug c++/55632] " paolo.carlini at oracle dot com
2013-02-26 14:05 ` paolo at gcc dot gnu.org
2013-02-26 14:06 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).