Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
4.1.3, 4.1.4
-
None
-
gcc 3.3.3 on Linux
-
Compiler Warning
Description
We're getting lots of warnings like the ones below from valarray tests. Even four levels of inlining in user code (not at all uncommon) triggers the noise...
$ cat t.cpp && make t
#include <valarray>
inline void f0 (std::valarray<int>) { }
inline void f1 (std::valarray<int> va)
inline void f2 (std::valarray<int> va)
{ f1 (va); }inline void f3 (std::valarray<int> va)
{ f2 (va); }inline void f4 (std::valarray<int> va)
{ f3 (va); }int main ()
{
f4 (std::valarray<int>());
}
gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -pthread -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.3.3_43.41-12d/include -I/amd/devco/sebor/stdcxx/examples/include -pedantic -nostdinc++ -O2 -m32 -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align t.cpp
gcc t.o -o t -pthread -m32 -L/build/sebor/stdcxx-gcc-3.3.3_43.41-12d/lib -Wl,-R/build/sebor/stdcxx-gcc-3.3.3_43.41-12d/lib -lstd12d -lsupc++ -lm
In file included from /amd/devco/sebor/stdcxx/include/rw/_array.h:7:
t.cpp: In function `int main()':
/amd/devco/sebor/stdcxx/include/valarray:93: warning: inlining failed in call
to `std::valarray<_TypeT>::valarray(const std::valarray<_TypeT>&) [with
_TypeT = int]'
t.cpp:6: warning: called from here
In file included from /amd/devco/sebor/stdcxx/include/rw/_array.h:6:
/amd/devco/sebor/stdcxx/include/valarray:93: warning: inlining failed in call
to `std::valarray<_TypeT>::valarray(const std::valarray<_TypeT>&) [with
_TypeT = int]'
t.cpp:5: warning: called from here
In file included from /amd/devco/sebor/stdcxx/include/rw/_array.h:5:
/amd/devco/sebor/stdcxx/include/valarray:93: warning: inlining failed in call
to `std::valarray<_TypeT>::valarray(const std::valarray<_TypeT>&) [with
_TypeT = int]'
t.cpp:4: warning: called from here
In file included from /amd/devco/sebor/stdcxx/include/rw/_array.h:4:
/amd/devco/sebor/stdcxx/include/valarray:93: warning: inlining failed in call
to `std::valarray<_TypeT>::valarray(const std::valarray<_TypeT>&) [with
_TypeT = int]'
t.cpp:3: warning: called from here
In file included from t.cpp:7,
from t.cpp:11:
/amd/devco/sebor/stdcxx/include/valarray:93: warning: inlining failed in call
to `std::valarray<_TypeT>::valarray(const std::valarray<_TypeT>&) [with
_TypeT = int]'
t.cpp:6: warning: called from here
In file included from t.cpp:6,
from t.cpp:7,
from t.cpp:11:
/amd/devco/sebor/stdcxx/include/valarray:93: warning: inlining failed in call
to `std::valarray<_TypeT>::valarray(const std::valarray<_TypeT>&) [with
_TypeT = int]'
t.cpp:5: warning: called from here
In file included from t.cpp:5,
from t.cpp:6,
from t.cpp:7,
from t.cpp:11:
/amd/devco/sebor/stdcxx/include/valarray:93: warning: inlining failed in call
to `std::valarray<_TypeT>::valarray(const std::valarray<_TypeT>&) [with
_TypeT = int]'
t.cpp:4: warning: called from here
In file included from t.cpp:4,
from t.cpp:5,
from t.cpp:6,
from t.cpp:7,
from t.cpp:11:
/amd/devco/sebor/stdcxx/include/valarray:93: warning: inlining failed in call
to `std::valarray<_TypeT>::valarray(const std::valarray<_TypeT>&) [with
_TypeT = int]'
t.cpp:3: warning: called from here