lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] [PATCH] Use "noreturn" attribute in the function declaration too


From: Vadim Zeitlin
Subject: [lmi] [PATCH] Use "noreturn" attribute in the function declaration too
Date: Wed, 15 Mar 2017 01:12:24 +0100

 Hello,

 As previously mentioned, my reading of the Standard seems to indicate that
not using the "noreturn" attribute in the function declaration, but using
it in the function definition makes the program ill-formed. Whether I'm
correct or not, it definitely makes it uncompilable with MSVC which gives
many errors similar to the following one:

any_member.hpp(572): error C2381: 
'MemberSymbolTable<ClassType>::complain_that_no_such_member_is_ascribed': 
redefinition; '__declspec(noreturn)' or '[[noreturn]]' differs (compiling 
source file gpt_input.cpp)

 The attached patch simply adds "[[noreturn]]" to the function declaration,
which seems like the right fix to me. Could you please apply it?

 Thanks in advance,
VZ

Attachment: use-noreturn-attribute-in-the-function-declaration.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]