View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000717 | OpenFOAM | Bug | public | 2013-01-05 09:44 | 2013-03-14 09:08 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | CentOS | OS Version | 6.3 |
Summary | 0000717: Clang fails to build finiteVolume, reports type conversion is ambiguous in file cylindricalInletVelocityFvPatchVectorField.C | ||||
Description | Clang reports an error when building finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity. The error is: SOURCE=fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C ; clang++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -Wno-overloaded-virtual -O3 -DNoRepository -ftemplate-depth-100 -I/home/nishit29/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/nishit29/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/nishit29/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/nishit29/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64ClangDPOpt/cylindricalInletVelocityFvPatchVectorField.o fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C:135:23: error: conversion from 'tmp<Field<typename typeOfSum<Vector<double>, Vector<double> >::type> >' to 'const vectorField' (aka 'const Field<vector>') is ambiguous const vectorField d = r - (hatAxis & r)*hatAxis; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/nishit29/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/tmp.H:121:16: note: candidate function inline operator const T&() const; ^ /home/nishit29/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/Field.H:186:9: note: candidate constructor Field(const tmp<Field<Type> >&); ^ 1 error generated. make: *** [Make/linux64ClangDPOpt/cylindricalInletVelocityFvPatchVectorField.o] Error 1 | ||||
Steps To Reproduce | 1. Select Clang as compiler 2. Build OpenFOAM-2.1.x | ||||
Additional Information | I have successfully compiled this version of OpenFOAM with gcc(4.7.2) and Icc(12.1.3). Thw version of Clang used was: clang version 3.3 (trunk 171611) Target: x86_64-unknown-linux-gnu Thread model: posix | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-01-05 09:44 |
|
New Issue | |
2013-01-05 09:57 |
|
Note Added: 0001854 | |
2013-03-14 09:07 |
|
Relationship added | duplicate of 0000510 |
2013-03-14 09:08 |
|
Note Added: 0002001 | |
2013-03-14 09:08 |
|
Status | new => resolved |
2013-03-14 09:08 |
|
Fixed in Version | => 2.2.x |
2013-03-14 09:08 |
|
Resolution | open => fixed |
2013-03-14 09:08 |
|
Assigned To | => user2 |