__func__ is not a keyword

Liste des GroupesRevenir à cl c 
Sujet : __func__ is not a keyword
De : thiago.adams (at) *nospam* gmail.com (Thiago Adams)
Groupes : comp.lang.c
Date : 15. Mar 2025, 20:47:42
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vr4lgu$63fu$1@dont-email.me>
User-Agent : Mozilla Thunderbird
This program does not compile..in gcc and clang
int __func__  i =1;
int main () {}
error: expected identifier...
Standard has..
"The identifier __func__ shall be implicitly declared by the translator as if, immediately following
the opening brace of each function definition, the declaration" ...
My understand is that __func__   is not a keyword and that is something defined inside the functions.. so I don’t know why gcc and clang complains in the file scope.

Date Sujet#  Auteur
15 Mar 25 * __func__ is not a keyword15Thiago Adams
15 Mar 25 `* Re: __func__ is not a keyword14Keith Thompson
15 Mar 25  +* Re: __func__ is not a keyword3Thiago Adams
15 Mar 25  i`* Re: __func__ is not a keyword2Keith Thompson
15 Mar 25  i `- Re: __func__ is not a keyword1Keith Thompson
16 Mar 25  +* Re: __func__ is not a keyword3Kaz Kylheku
16 Mar 25  i`* Re: __func__ is not a keyword2Keith Thompson
18 Mar 25  i `- Re: __func__ is not a keyword1Tim Rentsch
16 Mar 25  `* Re: __func__ is not a keyword7Keith Thompson
16 Mar 25   `* Re: __func__ is not a keyword6Kaz Kylheku
16 Mar 25    +* Re: __func__ is not a keyword4Keith Thompson
17 Mar 25    i`* Re: __func__ is not a keyword3Kaz Kylheku
17 Mar 25    i `* Re: __func__ is not a keyword2Keith Thompson
17 Mar 25    i  `- Re: __func__ is not a keyword1Kaz Kylheku
16 Mar 25    `- Re: __func__ is not a keyword1James Kuyper

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal