Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vladimir.krivopalov at gmail dot com
Target Milestone: ---
The following code compiles fine with GCC 10.1.0 but fails with Clang 10.0.0 :
struct Base {
[[nodiscard]] virtual
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vladimir.krivopalov at gmail dot com
Target Milestone: ---
The following code compiles fine with GCC (-std=c++14) although normally it
should be rejected:
#include
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57350
Vladimir Krivopalov changed:
What|Removed |Added
CC||vladimir.krivopalov at gmail
dot c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57350
--- Comment #6 from Vladimir Krivopalov
---
(In reply to David Krauss from comment #5)
> Just re-reading now, std::size_t should be std::uintptr_t, but I don't see
> anything else that could cause UB. The bitwise "negative" arithmetic should
> be