View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001766 | OpenFOAM | Bug | public | 2015-06-29 13:05 | 2015-06-29 14:20 |
Reporter | hk318i | Assigned To | henry | ||
Priority | high | Severity | major | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Platform | Unix | OS | Linux | OS Version | CentOS release 6 |
Product Version | dev | ||||
Summary | 0001766: Compiler error in localEulerDdtScheme | ||||
Description | I was trying to compile the latest OpenFOAM-dev and I got the following error finiteVolume/ddtSchemes/localEulerDdtScheme/localEulerDdt.C: In static member function ‘static const volScalarField& Foam::fv::localEulerDdt::localRDeltaT(const Foam::fvMesh&)’: finiteVolume/ddtSchemes/localEulerDdtScheme/localEulerDdt.C:41:33: error: ‘template’ (as a disambiguator) is only allowed within templates cc1plus: error: expected unqualified-id before ‘’ cc1plus: error: expected ‘;’ before ‘’ cc1plus: error: expected primary-expression before ‘’ cc1plus: error: expected ‘;’ before ‘’ finiteVolume/ddtSchemes/localEulerDdtScheme/localEulerDdt.C: In static member function ‘static Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::fv::localEulerDdt::localRSubDeltaT(const Foam::fvMesh&, Foam::label)’: finiteVolume/ddtSchemes/localEulerDdtScheme/localEulerDdt.C:60:34: error: ‘template’ (as a disambiguator) is only allowed within templates finiteVolume/ddtSchemes/localEulerDdtScheme/localEulerDdt.C:55:5: error: expected primary-expression before ‘(’ token finiteVolume/ddtSchemes/localEulerDdtScheme/localEulerDdt.C:66:1: warning: control reaches end of non-void function [-Wreturn-type] finiteVolume/ddtSchemes/localEulerDdtScheme/localEulerDdt.C: In static member function ‘static const volScalarField& Foam::fv::localEulerDdt::localRDeltaT(const Foam::fvMesh&)’: finiteVolume/ddtSchemes/localEulerDdtScheme/localEulerDdt.C:45:1: warning: control reaches end of non-void function [-Wreturn-type] make: *** [/home/abfb165/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/src/finiteVolume/finiteVolume/ddtSchemes/localEulerDdtScheme/localEulerDdt.o] Error 1 | ||||
Additional Information | latest commit commit 5e3a0cdbbd4ba1e7c167f09953f132791cc670f9 Author: Henry Weller <http://cfd.direct> Date: Sun Jun 28 22:55:22 2015 +0100 gcc version 4.7.3 | ||||
Tags | No tags attached. | ||||