[Bug d/95075] New: gcc/d/dmd/dscope.c: 2 * strange assignments ?

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Tue May 12 07:31:22 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95075

            Bug ID: 95075
           Summary: gcc/d/dmd/dscope.c: 2 * strange assignments ?
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I just tried to build the D compiler with the clang++ compiler.

1.

trunk.git/gcc/d/dmd/dscope.c:318:23: warning: explicitly assigning value of
variable of type 'unsigned int' to itself [-Wself-assign]

Source code is

         fieldInit = fieldInit;

2.

trunk.git/gcc/d/dmd/dscope.c:328:23: warning: explicitly assigning value of
variable of type 'unsigned int' to itself [-Wself-assign]

Duplicate.


More information about the Gcc-bugs mailing list