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]

[Bug preprocessor/60570] expression in 'elif' directive mis-diagnosed as error when group will be skipped


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60570

--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Jan 23 11:57:43 2015
New Revision: 220035

URL: https://gcc.gnu.org/viewcvs?rev=220035&root=gcc&view=rev
Log:
    DR#412
    PR preprocessor/60570
    * directives.c (do_elif): Don't evaluate #elif conditionals
    when they don't need to be.

    * gcc.dg/cpp/pr36320.c: Turn dg-error into dg-bogus.
    * gcc.dg/cpp/pr60570.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/cpp/pr60570.c
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/cpp/pr36320.c
    trunk/libcpp/ChangeLog
    trunk/libcpp/directives.c


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