summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/Resolver.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-11-21 03:17:44 +0000
committerHans Wennborg <hans@hanshq.net>2013-11-21 03:17:44 +0000
commit84fe12d1e954a344b24069367bd5282b6a08dcc7 (patch)
treee99320b901340bed5833cf680ec1f7f35018c76d /lld/lib/Core/Resolver.cpp
parent4a4b5dcb7d76eb852d620fff9924a29cb0f63afa (diff)
downloadbcm5719-llvm-84fe12d1e954a344b24069367bd5282b6a08dcc7.tar.gz
bcm5719-llvm-84fe12d1e954a344b24069367bd5282b6a08dcc7.zip
Provide better diagnostic wording for initializers on static
data member definitions when the variable has an initializer in its declaration. For the following code: struct S { static const int x = 42; }; const int S::x = 42; This patch changes the diagnostic from: a.cc:4:14: error: redefinition of 'x' const int S::x = 42; ^ a.cc:2:20: note: previous definition is here static const int x = 42; ^ to: a.cc:4:18: error: static data member 'x' already has an initializer const int S::x = 42; ^ a.cc:2:24: note: previous initialization is here static const int x = 42; ^ Differential Revision: http://llvm-reviews.chandlerc.com/D2235 llvm-svn: 195306
Diffstat (limited to 'lld/lib/Core/Resolver.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud