View Issue Details

IDProjectCategoryView StatusLast Update
0003895OpenFOAMBugpublic2022-10-06 09:21
ReporterVictorEijkhout Assigned Towill  
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Product Versiondev 
Fixed in Version10 
Summary0003895: C++ compilation error algorithms/FvFaceCellWave/FvFaceCellWaveName.C
mpicxx -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/work2/00434/eijkhout/frontera/webfoam/OpenFOAM-dev/src/triSurface/lnInclude -I/work2/00434/eijkhout/frontera/webfoam/OpenFOAM-dev/src/meshTools/lnInclude -IlnInclude -I. -I/work2/00434/eijkhout/frontera/webfoam/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/work2/00434/eijkhout/frontera/webfoam/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c algorithms/FvFaceCellWave/FvFaceCellWaveName.C -o /work2/00434/eijkhout/frontera/webfoam/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/src/finiteVolume/algorithms/FvFaceCellWave/FvFaceCellWaveName.o
In file included from algorithms/FvFaceCellWave/FvFaceCellWave.H:363,
                 from algorithms/FvFaceCellWave/FvFaceCellWaveName.C:26:
algorithms/FvFaceCellWave/FvFaceCellWave.C: In constructor ‘Foam::FvFaceCellWave<Type, TrackingData>::FvFaceCellWave(const Foam::fvMesh&, Foam::List<T>&, Foam::List<Foam::List<T> >&, Foam::List<T>&, TrackingData&)’:
algorithms/FvFaceCellWave/FvFaceCellWave.C:558:9: error: no matching function for call to ‘Foam::FvFaceCellWave<Type, TrackingData>::sizesListList<Foam::List<Foam::PackedBoolList> >(Foam::labelList, bool)’
  558 | )
      | ^
In file included from algorithms/FvFaceCellWave/FvFaceCellWaveName.C:26:
algorithms/FvFaceCellWave/FvFaceCellWave.H:244:25: note: candidate: ‘template<class Type, class TrackingData> template<class ListList, class Value> static ListList Foam::FvFaceCellWave<Type, TrackingData>::sizesListList(const labelList&, const Value&)’
  244 | static ListList sizesListList(const labelList& s, const Value& value);
      | ^~~~~~~~~~~~~
algorithms/FvFaceCellWave/FvFaceCellWave.H:244:25: note: template argument deduction/substitution failed:
In file included from algorithms/FvFaceCellWave/FvFaceCellWave.H:363,
                 from algorithms/FvFaceCellWave/FvFaceCellWaveName.C:26:
algorithms/FvFaceCellWave/FvFaceCellWave.C:558:9: note: mismatched types ‘const Value’ and ‘bool’
  558 | )
      | ^
Steps To ReproduceCompilation with Intel 2019 compiler
TagsNo tags attached.



2022-10-06 07:40

manager   ~0012761

I am unable to reproduce this problem, OpenFOAM-dev compiles fine with the C++ compilers I have.

Which C++ compiler are you using?


2022-10-06 09:21

manager   ~0012762

As it happens, I was already fixing this for somebody else. It's caused by a bug in Gcc-9.2 (that's what you are using, right?), but the fix is simple and if anything makes the code more explicit, so I don't mind working around Gcc's bug in this instance. Fixed in 10 and dev by the following commits:

(If I'm wrong, and it's not Gcc-9.2, or this change doesn't fix it for you, then please open another report)

Issue History

Date Modified Username Field Change
2022-10-06 00:35 VictorEijkhout New Issue
2022-10-06 07:40 henry Note Added: 0012761
2022-10-06 09:21 will Assigned To => will
2022-10-06 09:21 will Status new => resolved
2022-10-06 09:21 will Resolution open => fixed
2022-10-06 09:21 will Fixed in Version => 10
2022-10-06 09:21 will Note Added: 0012762