Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
gccgo: too many syntax errors for a simple mistake #14528
Reduced from feedback I received from a student taking a class using Go.
The mistake in this program is the
The gc compiler and the go/parser both print two not terribly helpful syntax errors, but probably good enough:
Gccgo prints lots of errors:
It does seem a little excessive. I'm a bit surprised that gccgo tries to type-check a program with syntax errors at all.