------- Comment #14 from hubicka at gcc dot gnu dot org 2008-09-14 14:31 ------- On cross from today tree it seems fine: Starting program: /home/jh/gcc-baseline/build-aix/gcc/cc1plus -O2 *.ii -fpreprocessed -quiet -dumpbase makeChemkinReactions.C -maix32 -auxbase makeChemkinReactions -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -version -ftemplate-depth-40 GNU C++ (GCC) version 4.4.0 20080914 (experimental) (powerpc-ibm-aix5.3.0.0) compiled by GNU C version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21), GMP version 4.2.1, MPFR version 2.2.1. GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 272438ec7d6ea2c49ce12d5bf798cf01 In file included from lnInclude/TroeFallOffFunction.H:109, from reaction/reactions/makeChemkinReactions.C:37: lnInclude/TroeFallOffFunctionI.H: In member function 'Foam::scalar Foam::TroeFallOffFunction::operator()(Foam::scalar, Foam::scalar) const': lnInclude/TroeFallOffFunctionI.H:75: warning: sorry: semantics of inline function static data 'const Foam::scalar d' are wrong (you'll wind up with multiple copies) lnInclude/TroeFallOffFunctionI.H:75: warning: you can work around this by removing the initializer
Perhaps it was fixed by my yesterday commit on DECL_STRUCT_FUNCTION sharing? Or am I doing something wrong? Honza -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37057