Bug 489753
| Summary: | preprocessor error invalid character ' ' in raw string delimiter | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jochen Roth <jroth> | ||||
| Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | CC: | jakub | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2009-03-11 18:10:31 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Jakub, thanks for the quick response. BTW, if you want to avoid a raw-string literal (which would be e.g. R"[bx]" or R"a[bx]a"), just separate R from " with some whitespace. |
Created attachment 334840 [details] testcase Description of problem: The following code --------------- #define R "r" R"bx" --------------- causes gcc-4.4.0-0.23.x86_64 (cpp-4.4.0-0.23.x86_64) to print the following error message when compiling with gcc -E test.c --std=gnu99 # 1 "test.c" # 1 "<built-in>" # 1 "<command-line>" # 1 "test.c" test.c:3:1: error: invalid character ' ' in raw string delimiter R"bx" It works without specifying the --std=gnu99 option though. It also works with the upstream gcc 4.4 and with 4.3 gcc versions on different platforms. Version-Release number of selected component (if applicable): gcc-4.4.0-0.23.x86_64 How reproducible: Always Steps to Reproduce: 1.gcc -E test.c --std=gnu99 Actual results: Preprocessor error message Expected results: No error message