From b1563878b68ddd4eb8c2ed21aa33b555dbbee8cd Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 6 Aug 2015 15:39:42 +0200 Subject: [PATCH] Disallow comparison for reference types. Fixes #2690 --- Types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Types.h b/Types.h index bc499d595..c4992cfdf 100644 --- a/Types.h +++ b/Types.h @@ -409,6 +409,10 @@ public: DataLocation location() const { return m_location; } virtual TypePointer unaryOperatorResult(Token::Value _operator) const override; + virtual TypePointer binaryOperatorResult(Token::Value, TypePointer const&) const override + { + return TypePointer(); + } virtual unsigned memoryHeadSize() const override { return 32; } /// @returns a copy of this type with location (recursively) changed to @a _location,