This is the mail archive of the gcc-patches@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]

Re: PATCH: PR c++/39060: [4.4 regression] ICE with lots of invalid member functions


H.J. Lu wrote:
On Sat, Mar 7, 2009 at 1:23 PM, Jason Merrill <jason@redhat.com> wrote:
H.J. Lu wrote:
This patch returns NULL if default_argument is error_mark_node.
So if parsing the default argument fails, we pretend the parameter itself
didn't exist?  Why does that work better than just setting default_argument
to NULL_TREE?

I still got

/tmp/x.ii:19: internal compiler error: canonical types differ for
identical types void (A::)(void*) and void (A::)(void*)

Yes, I expected that it wouldn't work better, I was curious why it makes a difference. It seems that the problem is coming in when we build the method type.


Jason


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