]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/gc/main.go
[dev.typeparams] all: merge dev.regabi (ec741b0) into dev.typeparams
[gostls13.git] / src / cmd / compile / internal / gc / main.go
index 94b4e0e674e82f8ae6a6b577d19c18eb667227a9..b9454604f0d5814289d7d15f6a11a28d76dfc517 100644 (file)
@@ -218,6 +218,12 @@ func Main(archInit func(*Arch)) {
        cgoSymABIs()
        timings.Stop()
        timings.AddEvent(int64(lines), "lines")
+       if base.Flag.G != 0 && base.Flag.G < 3 {
+               // can only parse generic code for now
+               base.ExitIfErrors()
+               return
+       }
+
        recordPackageName()
 
        // Typecheck.