Commit Graph

1 Commits

Author SHA1 Message Date
xgopilot
78247e16ad Add regression test for issue #1357: go/types Scope.Insert segfault
This commit adds a documented test case for the segmentation fault that
occurs when using go/types.Scope.Insert() in llgo. The issue is caused
by a compiler bug in type metadata generation for stdlib packages.

The test case includes:
- Reproduction code (scope_insert.go)
- Detailed documentation (README.md) explaining the root cause
- Expected vs actual behavior
- Technical details for future developers
- Workarounds for users

This serves as a regression test that should pass once the compiler
bug in ssa/abitype.go is fixed.

Related: #642

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com>
2025-10-20 04:10:08 +00:00