Closed Bug 848270 Opened 11 years ago Closed 11 years ago

mozglue/linker/SeekableZStream.h:56:19: error: invalid use of nonstatic data member 'chunkSize'

Categories

(Core :: mozglue, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

After the landing of bug 847479, building with clang as host compiler (which is far from being a common setup, but still), fails with:
mozglue/linker/SeekableZStream.h:56:19: error: invalid use of
      nonstatic data member 'chunkSize'
    1 << ((sizeof(chunkSize) < sizeof(lastChunkSize) ?
                  ^~~~~~~~~
mozglue/linker/SeekableZStream.h:56:39: error: invalid use of
      nonstatic data member 'lastChunkSize'
    1 << ((sizeof(chunkSize) < sizeof(lastChunkSize) ?
                                      ^~~~~~~~~~~~~
mozglue/linker/SeekableZStream.h:57:19: error: invalid use of
      nonstatic data member 'chunkSize'
           sizeof(chunkSize) : sizeof(lastChunkSize)) - 1);
                  ^~~~~~~~~
mozglue/linker/SeekableZStream.h:57:39: error: invalid use of
      nonstatic data member 'lastChunkSize'
           sizeof(chunkSize) : sizeof(lastChunkSize)) - 1);
clang in C++98 mode, even. It doesn't fail with clang in C++11 mode.
So, this happens on osx hosts :(
Assignee: nobody → mh+mozilla
Attachment #721671 - Flags: review?(nfroyd) → review+
https://hg.mozilla.org/mozilla-central/rev/a7cb66376172
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: