* g++ 4.0 error: expected nested-name-specifier
@ 2006-01-31 13:20 Coumou Dim
2006-01-31 13:32 ` John Love-Jensen
0 siblings, 1 reply; 2+ messages in thread
From: Coumou Dim @ 2006-01-31 13:20 UTC (permalink / raw)
To: gcc-help
I get the following error when using g++ 4.0.2:
g++ -c -pipe -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -DUSE_LIB64_PATHES -w -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -DUSE_LIB64_PATHES -I/usr/lib/qt3/mkspecs/default -I. -I../applied_math -I../computational_geometry -I../finite_elements -I../interfaces -I../pde_operators -I../solver -I../generic_finite_volumes -I../main_library -I../two_phase_flow -I../interrelations -I/usr/include -I/usr/X11R6/include -o obj/LinearDiffusionAlgorithm.o LinearDiffusionAlgorithm.cpp
LinearDiffusionAlgorithm.h:66: error: expected nested-name-specifier
LinearDiffusionAlgorithm.h:66: error: expected ; before * token
This piece of code looks as follows:
template<typename fT,stl_index dim>
class LinearDiffusionAlgorithm {
typename A<fT,dim>* B; // this is line 66
};
This compiles fine using Intel c++ 8.0 compiler but not with g++ 4.0. Can anybody give me a hint of what is going wrong?
Many thanks in advance,
cheers,
Dim
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: g++ 4.0 error: expected nested-name-specifier
2006-01-31 13:20 g++ 4.0 error: expected nested-name-specifier Coumou Dim
@ 2006-01-31 13:32 ` John Love-Jensen
0 siblings, 0 replies; 2+ messages in thread
From: John Love-Jensen @ 2006-01-31 13:32 UTC (permalink / raw)
To: Coumou Dim, MSX to GCC
Hi Dim,
Could you provide a more complete example that compiles, which triggers the
error?
Thanks,
--Eljay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-31 13:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-31 13:20 g++ 4.0 error: expected nested-name-specifier Coumou Dim
2006-01-31 13:32 ` John Love-Jensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).