[cfe-users] -Winvalid-noreturn warning

2022-01-06 Thread Manu agarwal via cfe-users
Hi, We have the below code where this warning gets generated. #include [[noreturn]] inline void abc () noexcept { std::terminate (); } using MyNoReturn = void (*) () noexcept; //using MyNoReturn = std::add_pointer_t;// even this declaration, instead of the above, gives the same wa

Re: [cfe-users] inconsistent compilation error inside constexpr if

2020-08-29 Thread Manu agarwal via cfe-users
Fri, 21 Aug 2020 at 13:29, Manu agarwal via cfe-users mailto:cfe-users@lists.llvm.org>> wrote: Hello, In the below code the compiler throws "undeclared identifier" when the commented line is uncommented. Whereas the line just before compiles fine. Regards, Manu typedef b

Re: [cfe-users] inconsistent compilation error inside constexpr if

2020-08-23 Thread Manu agarwal via cfe-users
bolt, using LLVM evrsions back to 5.0, Clang does reject the "return ClientMain();" call you aren't seeing an error on. So I'm not sure what compiler/version/situation you're running, but at least at first blush it doesn't look like clang. On Fri, Aug 21, 2020 at 1:29

[cfe-users] inconsistent compilation error inside constexpr if

2020-08-21 Thread Manu agarwal via cfe-users
Hello, In the below code the compiler throws "undeclared identifier" when the commented line is uncommented. Whereas the line just before compiles fine. Regards, Manu typedef bool (* DummyFunc) (); bool ExecDummy (DummyFunc fptr) { if (fptr) return fptr (); return false; }