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

2020-08-23 Thread Manu agarwal via cfe-users
Hi David, Thanks for the reply. I missed to mention the environment and what i am trying to do. 1. Environment is ClangCL (version 10.0), Microsoft Visual Studio. 2. I assumed that since the 'constexpr if' evaluates to false, the external function's presence would not be checked. So

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

2020-08-23 Thread Richard Smith via cfe-users
On Fri, 21 Aug 2020 at 13:29, Manu agarwal via cfe-users < 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 bool (* Dummy

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

2020-08-23 Thread David Blaikie via cfe-users
On Sun, Aug 23, 2020 at 9:40 AM Manu agarwal wrote: > Hi David, > > Thanks for the reply. I missed to mention the environment and what i am > trying to do. > > >1. Environment is ClangCL (version 10.0), Microsoft Visual Studio. > >2. I assumed that since the 'constexpr if' evaluates t