------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de
2004-11-04 14:30 -------
Subject: Re: Misleading diagnostic for recursive template
instantiation
On 4 Nov 2004, pinskia at gcc dot gnu dot org wrote:
> Confirmed, I think PR 15538 would fix the problem because the class is an incomplete
> type at this
> point.
Yes, maybe - though icpc (7.1 and 8.0) in this case isn't helpful, too:
tests> icpc -c notype.cpp
notype.cpp(29): error: class "ComponentView<Array_t>" has no member
"Type_t"
typename ComponentView<This_t>::Type_t
^
detected during:
instantiation of class "Array<Dim, T, EngineTag> [with Dim=1,
T=double, EngineTag=Brick]" at line 19
instantiation of class "ComponentView<Array<Dim, T,
EngineTag>> [with Dim=1, T=double, EngineTag=Brick]" at line 36
compilation aborted for notype.cpp (code 2)
suspiciously similar to gcc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18296