Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be explicit about 'data' usage #14002

Merged
merged 1 commit into from Apr 12, 2016

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Apr 9, 2016

While compiling with GCC 6.0.0 (r234771) in C++1z mode compiler
produces extra diagnotic messages:

L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:47:3: error: reference to 'data' is ambiguous
L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:103:30: error: reference to 'data' is ambiguous
L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:104:27: error: reference to 'data' is ambiguous
L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:110:31: error: reference to 'data' is ambiguous
L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:111:5: error: reference to 'data' is ambiguous
L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:116:5: error: reference to 'data' is ambiguous
L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:121:5: error: reference to 'data' is ambiguous
L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:137:26: error: reference to 'data' is ambiguous
L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:138:7: error: reference to 'data' is ambiguous
L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:230:4: error: reference to 'data' is ambiguous
L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:239:6: error: reference to 'data' is ambiguous
L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:250:16: error: reference to 'data' is ambiguous
RecoVertex/BeamSpotProducer/test/global.h:35:25: error: template argument 1 is invalid
RecoVertex/BeamSpotProducer/test/global.h:35:25: error: template argument 2 is invalid
RecoVertex/BeamSpotProducer/test/global.h:36:31: error: expected initializer before 'zDataConstIter'
RecoVertex/BeamSpotProducer/test/global.h:37:25: error: expected initializer before 'zDataIter'

Avoid using plain 'data', because in C++1z (C++17) there is a new
std::data() function and if using namespace std exist it could
result in unexpected result visible in above diagnotic messages.

Signed-off-by: David Abdurachmanov David.Abdurachmanov@cern.ch

While compiling with GCC 6.0.0 (r234771) in C++1z mode compiler
produces extra diagnotic messages:

    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:47:3: error: reference to 'data' is ambiguous
    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:103:30: error: reference to 'data' is ambiguous
    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:104:27: error: reference to 'data' is ambiguous
    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:110:31: error: reference to 'data' is ambiguous
    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:111:5: error: reference to 'data' is ambiguous
    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:116:5: error: reference to 'data' is ambiguous
    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:121:5: error: reference to 'data' is ambiguous
    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:137:26: error: reference to 'data' is ambiguous
    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:138:7: error: reference to 'data' is ambiguous
    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:230:4: error: reference to 'data' is ambiguous
    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:239:6: error: reference to 'data' is ambiguous
    L1Trigger/GlobalCaloTrigger/test/testElectronSorter.cpp:250:16: error: reference to 'data' is ambiguous
    RecoVertex/BeamSpotProducer/test/global.h:35:25: error: template argument 1 is invalid
    RecoVertex/BeamSpotProducer/test/global.h:35:25: error: template argument 2 is invalid
    RecoVertex/BeamSpotProducer/test/global.h:36:31: error: expected initializer before 'zDataConstIter'
    RecoVertex/BeamSpotProducer/test/global.h:37:25: error: expected initializer before 'zDataIter'

Avoid using plain 'data', because in C++1z (C++17) there is a new
std::data() function and if using namespace std exist it could
result in unexpected result visible in above diagnotic messages.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 9, 2016

A new Pull Request was created by @davidlt for CMSSW_8_1_X.

It involves the following packages:

L1Trigger/GlobalCaloTrigger
RecoVertex/BeamSpotProducer

@cvuosalo, @cerminar, @cmsbuild, @rekovic, @franzoni, @slava77, @mmusich, @mulhearn, @davidlange6 can you please review it and eventually sign? Thanks.
@ghellwig, @makortel, @GiacomoSguazzoni, @rovere, @VinInn, @Martin-Grunewald, @tocheng, @cerati, @dgulhan this is something you requested to watch as well.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@slava77
Copy link
Contributor

slava77 commented Apr 10, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/12271/console

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@mmusich
Copy link
Contributor

mmusich commented Apr 11, 2016

+1
minimal technical changes in RecoVertex/BeamSpotProducer/test/global.h

@davidlange6 davidlange6 merged commit 722652f into cms-sw:CMSSW_8_1_X Apr 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants