Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equal generation for anonymous structs results in a crash #80

Open
jamietanna opened this issue Mar 27, 2023 · 1 comment
Open

Equal generation for anonymous structs results in a crash #80

jamietanna opened this issue Mar 27, 2023 · 1 comment
Labels

Comments

@jamietanna
Copy link
Contributor

package main

type ComplexStruct struct {
	Int      int
	MyStruct MyStruct
	Anon     struct {
		MyStruct MyStruct
	}
}

type MyStruct struct {
	Int64     int64
	StringPtr *string
}

func (this *ComplexStruct) Equal(that *ComplexStruct) bool {
	return deriveEqualComplexStruct(this, that)
}

Results in:

goderive
[1]    10134 killed     goderive
goderive  14.61s user 29.15s system 69% cpu 1:02.85 total

This is from:

	github.com/awalterschulze/goderive v0.0.0-20230228170144-9d8b5e1d9113
@awalterschulze
Copy link
Owner

Thank you for reporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants