Re: Bug in ignoring function call

2024-11-20 Thread Marek Polacek via Gcc-bugs
On Wed, Nov 20, 2024 at 09:43:46PM +0530, AKASH MISHRA via Gcc-bugs wrote: > Hi Team, > there is a bug , compiler not reporting error or warning while calling a > function with parentheses. > > For ex: > > void func() > { > printf("Hi i am in func"); > } > > main() > { > // call the func here wi

Bug in ignoring function call

2024-11-20 Thread AKASH MISHRA via Gcc-bugs
Hi Team, there is a bug , compiler not reporting error or warning while calling a function with parentheses. For ex: void func() { printf("Hi i am in func"); } main() { // call the func here without parentheses func; // here even though we miss parentheses, no error reported , neither function