This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

current GCC broken in handling __FUNCTION__: t.c:8: parse errorbefore string constant



I get on this simple function now:
int
main (void)
{
  printf ("fatal error in " __FUNCTION__);
  
  return 0;
}
$ /opt/gcc-3.1-checking/bin/gcc t.c
t.c: In function `main':
t.c:8: parse error before string constant

This is with GCC 3.1 from this morning on i686-linux-gnu.

The preproccessed source is simply:
# 1 "t.c"
# 1 "<builtin>"
# 1 "<command line>"
# 1 "t.c"
int
main (void)
{
  printf ("fatal error in " __FUNCTION__);

  return 0;
}

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]