https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67053
Bug ID: 67053 Summary: [6 Regression] AIL: experimental/optional/constexpr/make_optional.cc Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ktkachov at gcc dot gnu.org CC: rguenth at gcc dot gnu.org Target Milestone: --- Target: aarch64-none-elf, aarch64-none-linux-gnu, aarch64_be-none-elf, arm-none-eabi, arm-none-linux-gnueabihf I'm seeing a libstdc++ failure after: Author: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Tue Jul 28 07:20:33 2015 +0000 2015-07-28 Richard Biener <rguent...@suse.de> * fold-const.c (fold_comparison): Remove equality folding of decl addresses ... * match.pd: ... here and merge with existing pattern. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226299 138bc75d-0d04-0410-961f-82ee72b054a4 output is: $SRC/libstdc++-v3/testsuite/experimental/optional/constexpr/make_optional.cc: In function 'int main()': $SRC/libstdc++-v3/testsuite/experimental/optional/constexpr/make_optional.cc:29:3: error: non-constant condition for static assertion static_assert( &*o != &i, "" ); ^ $SRC/libstdc++-v3/testsuite/experimental/optional/constexpr/make_optional.cc:29:22: error: '((& o.std::experimental::fundamentals_v1::optional<int>::<anonymous>.std::experimental::fu ndamentals_v1::_Optional_base<int, false>::<anonymous>.std::experimental::fundamentals_v1::_Optional_base<int, false>::<anonymous union>::_M_payload) != (& i))' is not a constant expression static_assert( &*o != &i, "" ); ^ FAIL: experimental/optional/constexpr/make_optional.cc (test for excess errors)