Date: Sat, 28 Jul 2018 20:05:07 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 222542] [exp-run] Update GCC_DEFAULT from 6 to 7 Message-ID: <bug-222542-7788-FKrU99WZNI@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-222542-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-222542-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222542 Jan Beich <jbeich@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |222415 --- Comment #11 from Jan Beich <jbeich@FreeBSD.org> --- For one, "a constexpr specifier used in a function or static member variable (since C++17) declaration implies inline." As USES=3Dcompiler:c++17-lang ex= pands to USE_GCC=3Dyes a port relying on it will fail as following. $ make -C emulators/citra [...] src/core/hle/applets/swkbd.cpp: In member function 'Frontend::KeyboardConfig HLE::Applets::SoftwareKeyboard::ToFrontendConfig(const HLE::Applets::SoftwareKeyboardConfig&) const': src/core/hle/applets/swkbd.cpp:157:28: error: invalid conversion from 'const void*' to 'void*' [-fpermissive] std::memcpy(buffer.data(), config.hint_text.data(), text_size * sizeof(u16)); ~~~~~~~~~~~^~ In file included from /usr/local/lib/gcc6/include/c++/cstring:42:0, from src/core/hle/applets/swkbd.cpp:6: /usr/include/string.h:64:7: note: initializing argument 1 of 'void* memcpy(void*, const void*, size_t)' void *memcpy(void * __restrict, const void * __restrict, size_t); ^~~~~~ src/core/hle/applets/swkbd.cpp:172:36: error: invalid conversion from 'const void*' to 'void*' [-fpermissive] std::memcpy(buffer.data(), text.data(), text_size * sizeof(u16= )); ~~~~~~~~~~~^~ In file included from /usr/local/lib/gcc6/include/c++/cstring:42:0, from src/core/hle/applets/swkbd.cpp:6: /usr/include/string.h:64:7: note: initializing argument 1 of 'void* memcpy(void*, const void*, size_t)' void *memcpy(void * __restrict, const void * __restrict, size_t); ^~~~~~ Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222415 [Bug 222415] [patch] Mk/Uses/compiler.mk: Add support for C++17 --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222542-7788-FKrU99WZNI>