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 without parentheses
>
> func; // here even though we miss parentheses, no error reported , neither
> function got called
> }
>
> Regards,
> Akash Mishra
>
Not a bug; you need to use -Wall to get "warning: statement with no effect".
Also please don't email gcc-bugs directly, see <https://gcc.gnu.org/bugs/>.
Marek