tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] [bug] macro else interfered before comment block


From: Jinuk Park
Subject: [Tinycc-devel] [bug] macro else interfered before comment block
Date: Thu, 16 May 2024 09:53:20 +0900

when comment block before #else, tcc is not cognition #else.

example source code :
#include <stdio.h>
#define notfound

int main()
{
    #ifdef found
    puts("hello found");
    /*comment*/  #else
    puts("hello");
    #endif
}

exception code : (gcc/cl)
hello

result by tcc
<nothing printed>

ifdef and endif is working fine with comment block, but only else confused.

reply via email to

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