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]
Other format: [Raw text]

[Bug c++/14246] [3.4/3.5 Regression] Problems with templates, ice in write_template_arg_literal


------- Additional Comments From giovannibajo at libero dot it  2004-02-23 02:15 -------
Redux:

---------------------------------------------
template <typename T>
struct A {
    enum { Yes = (sizeof(T) == 1) };
};

template<bool T>
struct B {
    void foo(void);
};

template struct B< !A<int>::Yes >;
---------------------------------------------

We crash trying to produce a mangled name for the instantiation of the foo() 
member function, because the template argument is an INTEGER_CST with value 1 
and type boolean instead of boolean_true_node.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14246


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