Skip to content

Build failure on sparc64 with obj.as<bottom> #494

@jamessan

Description

@jamessan

I recently updated Debian's packaging to the 1.4.2 release and ran into this build failure on sparc64. All other architectures built fine.

object_with_zone.cpp: In member function 'virtual void object_with_zone_user_defined_non_virtual_Test::TestBody()':
object_with_zone.cpp:745:32: error: '*((void*)& v +16)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     bottom br = obj.as<bottom>();
                                ^
object_with_zone.cpp:745:32: error: '*((void*)& v +12)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
object_with_zone.cpp:745:32: error: '*((void*)& v +8)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
object_with_zone.cpp:745:32: error: '*((void*)& v +4)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
object_with_zone.cpp:745:32: error: 'v' may be used uninitialized in this function [-Werror=maybe-uninitialized]

using this toolchain

Kernel: Linux 4.6.0-1-sparc64-smp sparc64 (sparc64)
Toolchain package versions: binutils_2.26-9+sparc64.2 dpkg-dev_1.18.7 g++-6_6.1.1-6 gcc-6_6.1.1-6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions