Summary: | gcc 4.7 doesn't compile sdt.h with -std=c++0x | ||
---|---|---|---|
Product: | systemtap | Reporter: | Mark Wielaard <mark> |
Component: | runtime | Assignee: | Unassigned <systemtap> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Mark Wielaard
2012-01-26 22:26:45 UTC
This is a bug in sdt.h. gcc 4.7 supports user defined literals (UDF): https://en.wikipedia.org/wiki/C%2B%2B11#User-defined_literals In std=c++0x mode one now needs to add whitespace. See http://gcc.gnu.org/gcc-4.7/porting_to.html commit 99712e8716e19293fe1f6dd84854d350e57945e0 Author: Mark Wielaard <mjw@redhat.com> Date: Thu Jan 26 23:58:38 2012 +0100 PR13626 Add extra whitespace in sdt.h to deal with C11/C++11 UDF. gcc 4.7 supports C11/C++11 user defined literals (UDF): https://en.wikipedia.org/wiki/C%2B%2B11#User-defined_literals In std=c++0x mode one now needs to add whitespace between string literals. See http://gcc.gnu.org/gcc-4.7/porting_to.html |