This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/3863: ICE when compiling supplied code.



>Number:         3863
>Category:       c++
>Synopsis:       ICE when compiling supplied code.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 28 19:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     self
>Release:        gcc 2.95.2 and 3.0.1 (prerel)
>Organization:
>Environment:
Debian/Linux 2.2
>Description:
template<class T>
class some_class
	{
public:
	typedef T data_type;
	typedef typename data_type::list_type<data_type *> data_list;
	};

template<class T>
struct base_class
	{
	typedef some_class<T> some_type;
	typedef typename some_type::data_list data_list;
	};

template<class T>
class derived_class : public base_class<T>
	{
	typedef base_class<T>::data_list data_list;
#ifdef CONFORM
	typedef typename data_list::iterator iterator;
#else
	typedef data_list::iterator iterator;
#endif
	};

int
main()
	{
	}

>How-To-Repeat:
g++ filename.cc
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]