aboutsummaryrefslogtreecommitdiff
path: root/odb/pragma.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-10-27 10:34:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-10-27 10:34:31 +0200
commit65485663ce42b92f3f4f1ea62910fd91d8ec7b29 (patch)
treecb85b8a2323b9e868f4089450936368c33cc6dba /odb/pragma.cxx
parentef27013bab8ce027cce1c3efe4acafb8aef9d2e3 (diff)
Use expansion point rather than macro location in GCC 4.7.0 and later
Diffstat (limited to 'odb/pragma.cxx')
-rw-r--r--odb/pragma.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/pragma.cxx b/odb/pragma.cxx
index 0dc61f2..f40258f 100644
--- a/odb/pragma.cxx
+++ b/odb/pragma.cxx
@@ -3844,7 +3844,7 @@ post_process_pragmas ()
// Make sure it is instantiated.
//
tree decl (TYPE_NAME (p->value.value<tree> ()));
- location_t loc (DECL_SOURCE_LOCATION (decl));
+ location_t loc (real_source_location (decl));
// Reset input location so that we get nice diagnostics in case
// of an error.