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++/10079] ICE (segfault) while substitute return type containing unresolved qualified id


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-12-18 21:44 -------
Sorry, the testcase didn't go in yet because I got confused about the
validity of the testcase:

The PR was marked as "ice-on-invalid-code", but this should be
"ice-on-valid-code", since the second version of "func" is more specialized
than the first one. In fact mainline does compile the testcase without
problems.

Giovanni's guess that the segfault happens while trying to format the error
message about the ambiguity of the call added to this confusion. If you
really make ambiguous functions - i.e. use
    template <typename T, typename U> void func(T,U) {}
as second function, you get an error message about the ambiguity of the
call (and then a segfault with the 3.3 branch). So Giovanni's guess was
wrong.

I'll mark the PR as "ice-on-valid-code" and add a small testcase to the
testsuite Real Soon Now(tm).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |ice-on-valid-code


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


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