Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warning message in case of preprocesssor macro substitution
During the manual merge of issue #8645 the change of a rule has been missed resulting in incorrect and missing warnings: missing: ``` aa.cpp:9: warning: expected formal parameter after # in macro definition 'def7': 'a#' aa.h:7: warning: expected formal parameter after # in macro definition 'def7': 'a#' gasnetex.h:16: warning: expected formal parameter after # in macro definition 'Z1': '#' ``` Less correct warnings, due to incorrect rule we get: ``` gasnetex.h:3: warning: preprocessing issue while doing constant expression evaluation: syntax error: input=' ( != 1)' gasnetex.h:17: warning: preprocessing issue while doing constant expression evaluation: syntax error: input=' ( != 1)' gg.h:4: warning: preprocessing issue while doing constant expression evaluation: syntax error: input=' ! 1L || ( 1L && != 0 && != 1)' ``` instead of: ``` gasnetex.h:3: warning: preprocessing issue while doing constant expression evaluation: syntax error: input=' (# != 1)' gasnetex.h:17: warning: preprocessing issue while doing constant expression evaluation: syntax error: input=' ( # != 1)' gg.h:4: warning: preprocessing issue while doing constant expression evaluation: syntax error: input=' ! 1L || ( 1L && # != 0 && # != 1)' ```
- Loading branch information