Skip to content

Instantly share code, notes, and snippets.

@tenfyzhong
Created July 6, 2017 07:56
Show Gist options
  • Save tenfyzhong/1be2f461620d799f9ab6f494678454e4 to your computer and use it in GitHub Desktop.
Save tenfyzhong/1be2f461620d799f9ab6f494678454e4 to your computer and use it in GitHub Desktop.
golang error message
src/cmd/compile/internal/gc/align.go:24: yyerror("interface too large")
src/cmd/compile/internal/gc/align.go:78: yyerror("type %L too large", errtype)
src/cmd/compile/internal/gc/align.go:123: yyerrorl(t.Lineno, "invalid recursive type %v", t)
src/cmd/compile/internal/gc/align.go:215: yyerror("channel element type too large (>64kB)")
src/cmd/compile/internal/gc/align.go:226: yyerror("invalid recursive type %v", t)
src/cmd/compile/internal/gc/align.go:247: yyerror("use of [...] array outside of array literal")
src/cmd/compile/internal/gc/align.go:257: yyerror("type %L larger than address space", t)
src/cmd/compile/internal/gc/align.go:299: yyerror("type %v too large", t)
src/cmd/compile/internal/gc/bexport.go:804: yyerrorl(t.Lineno, "cannot export unnamed recursive interface")
src/cmd/compile/internal/gc/bimport.go:230: yyerror("cannot import %q due to version skew - reinstall package (%s)",
src/cmd/compile/internal/gc/bimport.go:292: yyerror("conflicting package names %s and %s for path %q", pkg.Name, name, path)
src/cmd/compile/internal/gc/bimport.go:295: yyerror("import %q: package depends on %q (import cycle)", importpkg.Path, path)
src/cmd/compile/internal/gc/bimport.go:421: yyerror("inconsistent definition for type %v during import\n\t%L (in %q)\n\t%L (in %q)", pt.Sym, pt, pt.Sym.Importdef.Path, t, importpkg.Path)
src/cmd/compile/internal/gc/closure.go:450: yyerrorl(r.Lineno, "heap-allocated closure, not allowed in runtime.")
src/cmd/compile/internal/gc/const.go:217: yyerror("invalid operation: %v (shift of type %v)", n, t)
src/cmd/compile/internal/gc/const.go:364: yyerror("cannot convert %v to type %v", n, t)
src/cmd/compile/internal/gc/const.go:427: yyerror("constant %v%vi truncated to real", fconv(&u.Real, FmtSharp), fconv(&u.Imag, FmtSharp|FmtSign))
src/cmd/compile/internal/gc/const.go:452: yyerror(msg, fconv(u, FmtSharp))
src/cmd/compile/internal/gc/const.go:459: yyerror("constant %v%vi truncated to integer", fconv(&u.Real, FmtSharp), fconv(&u.Imag, FmtSharp|FmtSign))
src/cmd/compile/internal/gc/const.go:462: yyerror("constant %v%vi truncated to real", fconv(&u.Real, FmtSharp), fconv(&u.Imag, FmtSharp|FmtSign))
src/cmd/compile/internal/gc/const.go:508: yyerror("constant %v overflows %v", v, t)
src/cmd/compile/internal/gc/const.go:696: yyerror("illegal constant expression %v %v", n.Op, nl.Type)
src/cmd/compile/internal/gc/const.go:946: yyerror("division by zero")
src/cmd/compile/internal/gc/const.go:957: yyerror("illegal constant expression: floating-point %% operation")
src/cmd/compile/internal/gc/const.go:976: yyerror("complex division by zero")
src/cmd/compile/internal/gc/const.go:1183: yyerror("illegal constant expression: %v %v %v", nl.Type, n.Op, nr.Type)
src/cmd/compile/internal/gc/const.go:1324: yyerror("use of untyped nil")
src/cmd/compile/internal/gc/const.go:1338: yyerror("defaultlit: unknown literal: %v", n)
src/cmd/compile/internal/gc/dcl.go:109: yyerror("mark left on the stack")
src/cmd/compile/internal/gc/dcl.go:124: yyerror("%v redeclared %s\n"+
src/cmd/compile/internal/gc/dcl.go:139: yyerrorl(line1, "%v redeclared %s\n"+
src/cmd/compile/internal/gc/dcl.go:170: yyerror("cannot declare name %v", s)
src/cmd/compile/internal/gc/dcl.go:174: yyerror("cannot declare init - must be func")
src/cmd/compile/internal/gc/dcl.go:258: yyerror("missing expression in var declaration")
src/cmd/compile/internal/gc/dcl.go:282: yyerror("extra expression in var declaration")
src/cmd/compile/internal/gc/dcl.go:293: yyerror("const declaration cannot have type without expression")
src/cmd/compile/internal/gc/dcl.go:307: yyerror("missing value in const declaration")
src/cmd/compile/internal/gc/dcl.go:324: yyerror("extra expression in const declaration")
src/cmd/compile/internal/gc/dcl.go:470: yyerrorl(defn.Lineno, "non-name %v on left side of :=", n)
src/cmd/compile/internal/gc/dcl.go:476: yyerrorl(defn.Lineno, "%v repeated on left side of :=", n.Sym)
src/cmd/compile/internal/gc/dcl.go:496: yyerrorl(defn.Lineno, "no new variables on left side of :=")
src/cmd/compile/internal/gc/dcl.go:508: yyerror("methods must have a unique non-blank name")
src/cmd/compile/internal/gc/dcl.go:715: yyerror("embedded type cannot be a pointer to interface")
src/cmd/compile/internal/gc/dcl.go:720: yyerror("embedded type cannot be a pointer")
src/cmd/compile/internal/gc/dcl.go:759: yyerror("field annotation must be string")
src/cmd/compile/internal/gc/dcl.go:787: yyerror("duplicate %s %s", what, f.Sym.Name)
src/cmd/compile/internal/gc/dcl.go:874: yyerror("interface method cannot have annotation")
src/cmd/compile/internal/gc/dcl.go:909: yyerror("interface type loop involving %v", n.Type)
src/cmd/compile/internal/gc/dcl.go:913: yyerror("interface contains embedded non-interface %v", n.Type)
src/cmd/compile/internal/gc/dcl.go:1152: yyerror("illegal receiver type: %v", t0)
src/cmd/compile/internal/gc/dcl.go:1199: yyerror("missing receiver")
src/cmd/compile/internal/gc/dcl.go:1209: yyerror("invalid receiver type %v (%v is a pointer type)", pa, t)
src/cmd/compile/internal/gc/dcl.go:1219: yyerror("invalid receiver type %v (%v is an unnamed type)", pa, t)
src/cmd/compile/internal/gc/dcl.go:1221: yyerror("invalid receiver type %v (%v is a pointer type)", pa, t)
src/cmd/compile/internal/gc/dcl.go:1223: yyerror("invalid receiver type %v (%v is an interface type)", pa, t)
src/cmd/compile/internal/gc/dcl.go:1227: yyerror("invalid receiver type %v (%L / %L)", pa, pa, t)
src/cmd/compile/internal/gc/dcl.go:1233: yyerror("cannot define new methods on non-local type %v", mt)
src/cmd/compile/internal/gc/dcl.go:1244: yyerror("type %v has both field and method named %v", mt, msym)
src/cmd/compile/internal/gc/dcl.go:1257: yyerror("method redeclared: %v.%v\n\t%v\n\t%v", mt, msym, f.Type, t)
src/cmd/compile/internal/gc/dcl.go:1403: yyerrorl(n.Func.WBLineno, err)
src/cmd/compile/internal/gc/export.go:38: yyerror("export/package mismatch: %v", n.Sym)
src/cmd/compile/internal/gc/export.go:298: yyerror("pkgtype %v", s)
src/cmd/compile/internal/gc/export.go:313: yyerror("expression must be a constant")
src/cmd/compile/internal/gc/export.go:338: yyerror("inconsistent definition for var %v during import\n\t%v (in %q)\n\t%v (in %q)", s, s.Def.Type, s.Importdef.Path, t, importpkg.Path)
src/cmd/compile/internal/gc/fmt.go:740: yyerror("unknown internal map type")
src/cmd/compile/internal/gc/gen.go:105: yyerror("%v escapes to heap, not allowed in runtime.", n)
src/cmd/compile/internal/gc/gen.go:195: yyerror("tempname called with nil type")
src/cmd/compile/internal/gc/lex.go:80: yyerror("//go:systemstack only allowed in runtime")
src/cmd/compile/internal/gc/lex.go:85: yyerror("//go:nowritebarrier only allowed in runtime")
src/cmd/compile/internal/gc/lex.go:90: yyerror("//go:nowritebarrierrec only allowed in runtime")
src/cmd/compile/internal/gc/lex.go:95: yyerror("//go:yeswritebarrierrec only allowed in runtime")
src/cmd/compile/internal/gc/lex.go:147: yyerror(`usage: //go:%s local [remote]`, verb)
src/cmd/compile/internal/gc/lex.go:167: yyerror(`usage: //go:cgo_import_dynamic local [remote ["library"]]`)
src/cmd/compile/internal/gc/lex.go:176: yyerror(`usage: //go:cgo_import_static local`)
src/cmd/compile/internal/gc/lex.go:185: yyerror(`usage: //go:cgo_dynamic_linker "path"`)
src/cmd/compile/internal/gc/lex.go:194: yyerror(`usage: //go:cgo_ldflag "arg"`)
src/cmd/compile/internal/gc/main.go:112: Ctxt.DiagFunc = yyerror
src/cmd/compile/internal/gc/main.go:626: yyerror("non-canonical import path %q (should be %q)", name, q)
src/cmd/compile/internal/gc/main.go:708: yyerror("import statement not a string")
src/cmd/compile/internal/gc/main.go:713: yyerror("import path is empty")
src/cmd/compile/internal/gc/main.go:726: yyerror("cannot import \"main\"")
src/cmd/compile/internal/gc/main.go:731: yyerror("import %q while compiling that package (import cycle)", path_)
src/cmd/compile/internal/gc/main.go:741: yyerror("cannot import package unsafe")
src/cmd/compile/internal/gc/main.go:752: yyerror("import path cannot be absolute path")
src/cmd/compile/internal/gc/main.go:769: yyerror("can't find import: %q", path_)
src/cmd/compile/internal/gc/main.go:783: yyerror("can't open import: %q: %v", path_, err)
src/cmd/compile/internal/gc/main.go:791: yyerror("import %s: not a package file", file)
src/cmd/compile/internal/gc/main.go:807: yyerror("import %s: not a go object file: %s", file, p)
src/cmd/compile/internal/gc/main.go:813: yyerror("import %s: object is [%s] expected [%s]", file, p[10:], q)
src/cmd/compile/internal/gc/main.go:834: yyerror("cannot import unsafe package %q", importpkg.Path)
src/cmd/compile/internal/gc/main.go:867: yyerror("cannot import %s: old export format no longer supported (recompile library)", path_)
src/cmd/compile/internal/gc/main.go:877: yyerror("no import in %q", path_)
src/cmd/compile/internal/gc/main.go:894: yyerrorl(lineno, "imported and not used: %q", path)
src/cmd/compile/internal/gc/main.go:896: yyerrorl(lineno, "imported and not used: %q as %s", path, name)
src/cmd/compile/internal/gc/main.go:903: yyerror("invalid package name _")
src/cmd/compile/internal/gc/main.go:908: yyerror("package %s; expected %s", pkgname, localpkg.Name)
src/cmd/compile/internal/gc/mpfloat.go:131: yyerror("ovf in Mpflt Float64")
src/cmd/compile/internal/gc/mpfloat.go:143: yyerror("ovf in Mpflt Float32")
src/cmd/compile/internal/gc/mpfloat.go:190: yyerror("malformed constant: %s", as)
src/cmd/compile/internal/gc/mpfloat.go:196: yyerror("constant too large: %s", as)
src/cmd/compile/internal/gc/mpint.go:74: yyerror("ovf in Mpint Add")
src/cmd/compile/internal/gc/mpint.go:83: yyerror("constant addition overflow")
src/cmd/compile/internal/gc/mpint.go:90: yyerror("ovf in Mpint Sub")
src/cmd/compile/internal/gc/mpint.go:99: yyerror("constant subtraction overflow")
src/cmd/compile/internal/gc/mpint.go:106: yyerror("ovf in Mpint Mul")
src/cmd/compile/internal/gc/mpint.go:115: yyerror("constant multiplication overflow")
src/cmd/compile/internal/gc/mpint.go:122: yyerror("ovf in Mpint Quo")
src/cmd/compile/internal/gc/mpint.go:132: yyerror("constant division overflow")
src/cmd/compile/internal/gc/mpint.go:139: yyerror("ovf in Mpint Rem")
src/cmd/compile/internal/gc/mpint.go:149: yyerror("constant modulo overflow")
src/cmd/compile/internal/gc/mpint.go:156: yyerror("ovf in Mpint Or")
src/cmd/compile/internal/gc/mpint.go:168: yyerror("ovf in Mpint And")
src/cmd/compile/internal/gc/mpint.go:180: yyerror("ovf in Mpint AndNot")
src/cmd/compile/internal/gc/mpint.go:192: yyerror("ovf in Mpint Xor")
src/cmd/compile/internal/gc/mpint.go:204: yyerror("ovf in Mpint Lsh")
src/cmd/compile/internal/gc/mpint.go:216: yyerror("%s: %d", msg, s)
src/cmd/compile/internal/gc/mpint.go:222: yyerror("constant shift overflow")
src/cmd/compile/internal/gc/mpint.go:231: yyerror("ovf in Mpint Rsh")
src/cmd/compile/internal/gc/mpint.go:239: yyerror("invalid negative shift count: %d", s)
src/cmd/compile/internal/gc/mpint.go:269: yyerror("constant overflow")
src/cmd/compile/internal/gc/mpint.go:291: yyerror("malformed integer constant: %s", as)
src/cmd/compile/internal/gc/mpint.go:296: yyerror("constant too large: %s", as)
src/cmd/compile/internal/gc/noder.go:140: yyerrorl(pack.Lineno, "cannot import package as init - init must be a func")
src/cmd/compile/internal/gc/noder.go:232: yyerror("can only use //go:noescape with external func implementations")
src/cmd/compile/internal/gc/noder.go:253: yyerror("func init must have no arguments and no return values")
src/cmd/compile/internal/gc/noder.go:259: yyerror("func main must have no arguments and no return values")
src/cmd/compile/internal/gc/noder.go:310: yyerror("cannot use ... in receiver or result parameter list")
src/cmd/compile/internal/gc/noder.go:312: yyerror("can only use ... with final parameter in list")
src/cmd/compile/internal/gc/noder.go:457: yyerror("invalid variable name %v in type switch", n.Left)
src/cmd/compile/internal/gc/noder.go:538: yyerror("%v is not a package", name)
src/cmd/compile/internal/gc/noder.go:674: yyerror("%s is shadowed during return", ln.Sym.Name)
src/cmd/compile/internal/gc/noder.go:1020: yyerrorl(line, "%s", msg)
src/cmd/compile/internal/gc/noder.go:1059: lineno = p.baseline + int32(line) - 1 // pragcgo may call yyerror
src/cmd/compile/internal/gc/noder.go:1067: lineno = p.baseline + int32(line) - 1 // pragmaValue may call yyerror
src/cmd/compile/internal/gc/order.go:804: yyerror("unknown op in select %v", r.Op)
src/cmd/compile/internal/gc/order.go:826: yyerror("ninit on select recv")
src/cmd/compile/internal/gc/order.go:888: yyerror("ninit on select send")
src/cmd/compile/internal/gc/pgen.go:91: yyerror("gvardef %#v; %v", n.Op, n)
src/cmd/compile/internal/gc/pgen.go:287: yyerror("stack frame too large (>2GB)")
src/cmd/compile/internal/gc/pgen.go:323: yyerror("missing function body for %q", fn.Func.Nname.Sym.Name)
src/cmd/compile/internal/gc/plive.go:828: yyerror("checkauto: invariant lost")
src/cmd/compile/internal/gc/plive.go:845: yyerror("checkparam: invariant lost")
src/cmd/compile/internal/gc/plive.go:1347: yyerrorl(p.Lineno, "internal error: %v %L recorded as live on entry, p.Pc=%v", Curfn.Func.Nname, n, p.Pc)
src/cmd/compile/internal/gc/racewalk.go:369: yyerror("instrument: %v must be lowered by now", n.Op)
src/cmd/compile/internal/gc/racewalk.go:375: yyerror("instrument: %v cannot exist now", n.Op)
src/cmd/compile/internal/gc/racewalk.go:379: yyerror("instrument: OGETG can happen only in runtime which we don't instrument")
src/cmd/compile/internal/gc/range.go:51: yyerror("cannot range over %L", n.Right)
src/cmd/compile/internal/gc/range.go:64: yyerror("invalid operation: range %v (receive from send-only type %v)", n.Right, n.Right.Type)
src/cmd/compile/internal/gc/range.go:80: yyerror("too many variables in range")
src/cmd/compile/internal/gc/range.go:107: yyerror("cannot assign type %v to %L in range%s", t1, v1, why)
src/cmd/compile/internal/gc/range.go:116: yyerror("cannot assign type %v to %L in range%s", t2, v2, why)
src/cmd/compile/internal/gc/reflect.go:168: yyerror("bad math in mapbucket for %v", t)
src/cmd/compile/internal/gc/reflect.go:248: yyerror("hash_iter size not correct %d %d", i.Width, 12*Widthptr)
src/cmd/compile/internal/gc/select.go:27: yyerror("multiple defaults in select (first at %v)", def.Line())
src/cmd/compile/internal/gc/select.go:32: yyerror("select cases cannot be lists")
src/cmd/compile/internal/gc/select.go:41: yyerror("select case must be receive, send or assign recv")
src/cmd/compile/internal/gc/select.go:52: yyerror("select assignment must have receive on right hand side")
src/cmd/compile/internal/gc/select.go:61: yyerror("select assignment must have receive on right hand side")
src/cmd/compile/internal/gc/subr.go:101:func yyerrorl(line int32, format string, args ...interface{}) {
src/cmd/compile/internal/gc/subr.go:135:func yyerror(format string, args ...interface{}) {
src/cmd/compile/internal/gc/subr.go:136: yyerrorl(lineno, format, args...)
src/cmd/compile/internal/gc/subr.go:312: yyerror("cannot refer to unexported name %s.%s", pkg.Name, name)
src/cmd/compile/internal/gc/subr.go:351: yyerrorl(pack.Lineno, "imported and not used: %q", opkg.Path)
src/cmd/compile/internal/gc/subr.go:743: yyerror("cannot use unsafe.Pointer")
src/cmd/compile/internal/gc/subr.go:972: yyerror("use of untyped nil")
src/cmd/compile/internal/gc/subr.go:1003: yyerror("cannot use %L as type %v in %s%s", n, t, context(), why)
src/cmd/compile/internal/gc/subr.go:1236: yyerror("illegal types for operand: %v%s", op, s)
src/cmd/compile/internal/gc/subr.go:1527: yyerror("ambiguous selector %v", n)
src/cmd/compile/internal/gc/subr.go:1880: yyerror("%v.%v is ambiguous", t, s)
src/cmd/compile/internal/gc/subr.go:1893: yyerror("%v.%v is a field, not a method", t, s)
src/cmd/compile/internal/gc/subr.go:1960: yyerror("interface pointer mismatch")
src/cmd/compile/internal/gc/subr.go:2128: yyerror("import path contains NUL")
src/cmd/compile/internal/gc/subr.go:2134: yyerror("import path %q is reserved and cannot be used", path)
src/cmd/compile/internal/gc/subr.go:2141: yyerror("import path contains invalid UTF-8 sequence: %q", path)
src/cmd/compile/internal/gc/subr.go:2146: yyerror("import path contains control character: %q", path)
src/cmd/compile/internal/gc/subr.go:2151: yyerror("import path contains backslash; use slash: %q", path)
src/cmd/compile/internal/gc/subr.go:2156: yyerror("import path contains space character: %q", path)
src/cmd/compile/internal/gc/subr.go:2161: yyerror("import path contains invalid character '%c': %q", r, path)
src/cmd/compile/internal/gc/ssa.go:151: yyerrorl(lab.defNode.Lineno, "label %v defined and not used", name)
src/cmd/compile/internal/gc/ssa.go:155: yyerrorl(lab.useNode.Lineno, "label %v not defined", name)
src/cmd/compile/internal/gc/ssa.go:357: yyerrorl(s.peekLine(), msg, args...)
src/cmd/compile/internal/gc/ssa.go:4303: yyerrorl(lno, "goto %v jumps into block starting at %v", from.Left.Sym, linestr(block.Lastlineno))
src/cmd/compile/internal/gc/ssa.go:4305: yyerrorl(lno, "goto %v jumps over declaration of %v at %v", from.Left.Sym, dcl, linestr(dcl.Lastlineno))
src/cmd/compile/internal/gc/swt.go:68: yyerror("cannot type switch on non-interface value %L", n.Left.Right)
src/cmd/compile/internal/gc/swt.go:83: yyerror("cannot switch on %L", n.Left)
src/cmd/compile/internal/gc/swt.go:87: yyerror("cannot switch on %L", n.Left)
src/cmd/compile/internal/gc/swt.go:90: yyerror("cannot switch on %L (struct containing %v cannot be compared)", n.Left, f.Type)
src/cmd/compile/internal/gc/swt.go:109: yyerror("multiple defaults in switch (first at %v)", def.Line())
src/cmd/compile/internal/gc/swt.go:130: yyerror("type %v is not an expression", n1.Type)
src/cmd/compile/internal/gc/swt.go:133: yyerror("invalid case %v in switch on %v (mismatched types %v and %v)", n1, n.Left, n1.Type, t)
src/cmd/compile/internal/gc/swt.go:135: yyerror("invalid case %v in switch (mismatched types %v and bool)", n1, n1.Type)
src/cmd/compile/internal/gc/swt.go:138: yyerror("invalid case %v in switch (can only compare %s %v to nil)", n1, nilonly, n.Left)
src/cmd/compile/internal/gc/swt.go:140: yyerror("invalid case %L in switch (incomparable type)", n1)
src/cmd/compile/internal/gc/swt.go:151: yyerror("multiple nil cases in type switch (first at %v)", niltype.Line())
src/cmd/compile/internal/gc/swt.go:156: yyerror("%L is not a type", n1)
src/cmd/compile/internal/gc/swt.go:162: yyerror("impossible type switch case: %L cannot have dynamic type %v"+
src/cmd/compile/internal/gc/swt.go:165: yyerror("impossible type switch case: %L cannot have dynamic type %v"+
src/cmd/compile/internal/gc/swt.go:378: yyerror("more than one default case")
src/cmd/compile/internal/gc/swt.go:464: yyerror("cannot fallthrough in type switch")
src/cmd/compile/internal/gc/swt.go:469: yyerror("cannot fallthrough final case in switch")
src/cmd/compile/internal/gc/swt.go:581: yyerrorl(c.node.Lineno, "duplicate case %v in type switch\n\tprevious case at %v", c.node.Left.Type, n.Line())
src/cmd/compile/internal/gc/swt.go:622: yyerror("duplicate case %#v in switch\n\tprevious case at %v", val, prev.Line())
src/cmd/compile/internal/gc/swt.go:635: yyerror("duplicate case %d in switch\n\tprevious case at %v", i, prev.Line())
src/cmd/compile/internal/gc/swt.go:668: yyerror("duplicate case %v in switch\n\tprevious case at %v", prev.Left, prev.Line())
src/cmd/compile/internal/gc/swt.go:687: yyerror("type switch must have an assignment")
src/cmd/compile/internal/gc/swt.go:693: yyerror("type switch must be on an interface")
src/cmd/compile/internal/gc/unsafe.go:15: yyerror("invalid expression %v", n)
src/cmd/compile/internal/gc/unsafe.go:27: yyerror("invalid expression %v", n)
src/cmd/compile/internal/gc/unsafe.go:42: yyerror("invalid expression %v: argument is a method value", n)
src/cmd/compile/internal/gc/unsafe.go:45: yyerror("invalid expression %v", n)
src/cmd/compile/internal/gc/unsafe.go:58: yyerror("invalid expression %v: selector implies indirection of embedded %v", n, r.Left)
src/cmd/compile/internal/gc/typecheck.go:160: yyerror("%v is not a type", n)
src/cmd/compile/internal/gc/typecheck.go:165: yyerror("%v is not a type", n)
src/cmd/compile/internal/gc/typecheck.go:169: yyerrorl(n.Lineno, "constant definition loop%s", fmt_)
src/cmd/compile/internal/gc/typecheck.go:178: yyerror("typechecking loop involving %v%s", n, fmt_)
src/cmd/compile/internal/gc/typecheck.go:261: yyerror("use of builtin %v not in function call", n.Sym)
src/cmd/compile/internal/gc/typecheck.go:308: yyerror("cannot use _ as value")
src/cmd/compile/internal/gc/typecheck.go:320: yyerror("use of package %v without selector", n.Sym)
src/cmd/compile/internal/gc/typecheck.go:350: yyerror("use of [...] array outside of array literal")
src/cmd/compile/internal/gc/typecheck.go:361: yyerror("non-constant array bound %v", l)
src/cmd/compile/internal/gc/typecheck.go:363: yyerror("invalid array bound %v", l)
src/cmd/compile/internal/gc/typecheck.go:371: yyerror("array bound is too large")
src/cmd/compile/internal/gc/typecheck.go:378: yyerror("array bound must be non-negative")
src/cmd/compile/internal/gc/typecheck.go:404: yyerror("go:notinheap map key not allowed")
src/cmd/compile/internal/gc/typecheck.go:407: yyerror("go:notinheap map value not allowed")
src/cmd/compile/internal/gc/typecheck.go:420: yyerror("invalid map key type %v", l.Type)
src/cmd/compile/internal/gc/typecheck.go:435: yyerror("chan of go:notinheap type not allowed")
src/cmd/compile/internal/gc/typecheck.go:491: yyerror("invalid indirect of %L", n.Left)
src/cmd/compile/internal/gc/typecheck.go:540: yyerror("invalid operation: %v (non-numeric type %v)", n, l.Type)
src/cmd/compile/internal/gc/typecheck.go:563: yyerror("invalid operation: %v (shift count type %v, must be unsigned integer)", n, r.Type)
src/cmd/compile/internal/gc/typecheck.go:570: yyerror("invalid operation: %v (shift of type %v)", n, t)
src/cmd/compile/internal/gc/typecheck.go:612: yyerror("invalid operation: %v (operator %v not defined on %s)", n, op, typekind(l.Type))
src/cmd/compile/internal/gc/typecheck.go:634: yyerror("invalid operation: %v (operator %v not defined on %s)", n, op, typekind(r.Type))
src/cmd/compile/internal/gc/typecheck.go:658: yyerror("invalid operation: %v (mismatched types %v and %v)", n, l.Type, r.Type)
src/cmd/compile/internal/gc/typecheck.go:665: yyerror("invalid operation: %v (operator %v not defined on %s)", n, op, typekind(t))
src/cmd/compile/internal/gc/typecheck.go:673: yyerror("invalid operation: %v (%v cannot be compared)", n, l.Type)
src/cmd/compile/internal/gc/typecheck.go:679: yyerror("invalid operation: %v (slice can only be compared to nil)", n)
src/cmd/compile/internal/gc/typecheck.go:685: yyerror("invalid operation: %v (map can only be compared to nil)", n)
src/cmd/compile/internal/gc/typecheck.go:691: yyerror("invalid operation: %v (func can only be compared to nil)", n)
src/cmd/compile/internal/gc/typecheck.go:698: yyerror("invalid operation: %v (struct containing %v cannot be compared)", n, f.Type)
src/cmd/compile/internal/gc/typecheck.go:756: yyerror("division by zero")
src/cmd/compile/internal/gc/typecheck.go:775: yyerror("invalid operation: %v %v", n.Op, t)
src/cmd/compile/internal/gc/typecheck.go:853: yyerror("%v undefined (cannot refer to unexported method %v)", n, n.Sym)
src/cmd/compile/internal/gc/typecheck.go:855: yyerror("%v undefined (type %v has no method %v)", n, t, n.Sym)
src/cmd/compile/internal/gc/typecheck.go:862: yyerror("type %v has no method %S", n.Left.Type, n.Sym)
src/cmd/compile/internal/gc/typecheck.go:890: yyerror("cannot refer to blank field or method")
src/cmd/compile/internal/gc/typecheck.go:899: yyerror("%v undefined (type %v is interface with no methods)", n, n.Left.Type)
src/cmd/compile/internal/gc/typecheck.go:903: yyerror("%v undefined (type %v is pointer to interface, not interface)", n, n.Left.Type)
src/cmd/compile/internal/gc/typecheck.go:907: yyerror("%v undefined (cannot refer to unexported field or method %v)", n, n.Sym)
src/cmd/compile/internal/gc/typecheck.go:911: yyerror("%v undefined (type %v has no field or method %v, but does have %v)", n, n.Left.Type, n.Sym, mt.Sym)
src/cmd/compile/internal/gc/typecheck.go:913: yyerror("%v undefined (type %v has no field or method %v)", n, n.Left.Type, n.Sym)
src/cmd/compile/internal/gc/typecheck.go:946: yyerror("invalid type assertion: %v (non-interface type %v on left)", n, t)
src/cmd/compile/internal/gc/typecheck.go:965: yyerror("impossible type assertion:\n\t%v does not implement %v (wrong type for %v method)\n"+
src/cmd/compile/internal/gc/typecheck.go:968: yyerror("impossible type assertion:\n\t%v does not implement %v (%v method has pointer receiver)", n.Type, t, missing.Sym)
src/cmd/compile/internal/gc/typecheck.go:970: yyerror("impossible type assertion:\n\t%v does not implement %v (missing %v method)\n"+
src/cmd/compile/internal/gc/typecheck.go:973: yyerror("impossible type assertion:\n\t%v does not implement %v (missing %v method)", n.Type, t, missing.Sym)
src/cmd/compile/internal/gc/typecheck.go:997: yyerror("invalid operation: %v (type %v does not support indexing)", n, t)
src/cmd/compile/internal/gc/typecheck.go:1016: yyerror("non-integer %s index %v", why, n.Right)
src/cmd/compile/internal/gc/typecheck.go:1023: yyerror("invalid %s index %v (index must be non-negative)", why, n.Right)
src/cmd/compile/internal/gc/typecheck.go:1025: yyerror("invalid array index %v (out of bounds for %d-element array)", n.Right, t.NumElem())
src/cmd/compile/internal/gc/typecheck.go:1027: yyerror("invalid string index %v (out of bounds for %d-byte string)", n.Right, len(n.Left.Val().U.(string)))
src/cmd/compile/internal/gc/typecheck.go:1029: yyerror("invalid %s index %v (index too large)", why, n.Right)
src/cmd/compile/internal/gc/typecheck.go:1056: yyerror("invalid operation: %v (receive from non-chan type %v)", n, t)
src/cmd/compile/internal/gc/typecheck.go:1062: yyerror("invalid operation: %v (receive from send-only type %v)", n, t)
src/cmd/compile/internal/gc/typecheck.go:1083: yyerror("invalid operation: %v (send to non-chan type %v)", n, t)
src/cmd/compile/internal/gc/typecheck.go:1089: yyerror("invalid operation: %v (send to receive-only type %v)", n, t)
src/cmd/compile/internal/gc/typecheck.go:1128: yyerror("invalid operation %v (slice of unaddressable value)", n)
src/cmd/compile/internal/gc/typecheck.go:1142: yyerror("invalid operation %v (3-index slice of string)", n)
src/cmd/compile/internal/gc/typecheck.go:1160: yyerror("cannot slice %v (type %v)", l, t)
src/cmd/compile/internal/gc/typecheck.go:1195: yyerror("invalid use of ... with builtin %v", l)
src/cmd/compile/internal/gc/typecheck.go:1212: yyerror("invalid use of ... in type conversion to %v", l.Type)
src/cmd/compile/internal/gc/typecheck.go:1265: yyerror("cannot call non-function %v (type %v)", l, t)
src/cmd/compile/internal/gc/typecheck.go:1295: yyerror("multiple-value %v() in single-value context", l)
src/cmd/compile/internal/gc/typecheck.go:1386: yyerror("invalid argument %L for %v", n.Left, n.Op)
src/cmd/compile/internal/gc/typecheck.go:1397: yyerror("invalid operation: complex expects two arguments")
src/cmd/compile/internal/gc/typecheck.go:1408: yyerror("invalid operation: complex expects two arguments, %v returns %d results", n.List.First(), t.Results().NumFields())
src/cmd/compile/internal/gc/typecheck.go:1439: yyerror("invalid operation: %v (mismatched types %v and %v)", n, l.Type, r.Type)
src/cmd/compile/internal/gc/typecheck.go:1447: yyerror("invalid operation: %v (arguments have type %v, expected floating-point)", n, l.Type)
src/cmd/compile/internal/gc/typecheck.go:1486: yyerror("invalid operation: %v (non-chan type %v)", n, t)
src/cmd/compile/internal/gc/typecheck.go:1492: yyerror("invalid operation: %v (cannot close receive-only channel)", n)
src/cmd/compile/internal/gc/typecheck.go:1503: yyerror("missing arguments to delete")
src/cmd/compile/internal/gc/typecheck.go:1509: yyerror("missing second (key) argument to delete")
src/cmd/compile/internal/gc/typecheck.go:1515: yyerror("too many arguments to delete")
src/cmd/compile/internal/gc/typecheck.go:1525: yyerror("first argument to delete must be map; have %L", l.Type)
src/cmd/compile/internal/gc/typecheck.go:1537: yyerror("missing arguments to append")
src/cmd/compile/internal/gc/typecheck.go:1564: yyerror("first argument to append must be typed slice; have untyped nil")
src/cmd/compile/internal/gc/typecheck.go:1569: yyerror("first argument to append must be slice; have %L", t)
src/cmd/compile/internal/gc/typecheck.go:1576: yyerror("cannot use ... on first argument to append")
src/cmd/compile/internal/gc/typecheck.go:1582: yyerror("too many arguments to append")
src/cmd/compile/internal/gc/typecheck.go:1600: yyerror("cannot append %v value to []%v", t.Type, n.Type.Elem())
src/cmd/compile/internal/gc/typecheck.go:1619: yyerror("missing arguments to copy")
src/cmd/compile/internal/gc/typecheck.go:1625: yyerror("too many arguments to copy")
src/cmd/compile/internal/gc/typecheck.go:1652: yyerror("arguments to copy have different element types: %L and string", n.Left.Type)
src/cmd/compile/internal/gc/typecheck.go:1659: yyerror("arguments to copy must be slices; have %L, %L", n.Left.Type, n.Right.Type)
src/cmd/compile/internal/gc/typecheck.go:1661: yyerror("first argument to copy should be slice; have %L", n.Left.Type)
src/cmd/compile/internal/gc/typecheck.go:1663: yyerror("second argument to copy should be slice or string; have %L", n.Right.Type)
src/cmd/compile/internal/gc/typecheck.go:1670: yyerror("arguments to copy have different element types: %L and %L", n.Left.Type, n.Right.Type)
src/cmd/compile/internal/gc/typecheck.go:1691: yyerror("cannot convert %L to type %v%s", n.Left, n.Type, why)
src/cmd/compile/internal/gc/typecheck.go:1726: yyerror("missing argument to make")
src/cmd/compile/internal/gc/typecheck.go:1743: yyerror("cannot make type %v", t)
src/cmd/compile/internal/gc/typecheck.go:1749: yyerror("missing len argument to make(%v)", t)
src/cmd/compile/internal/gc/typecheck.go:1773: yyerror("len larger than cap in make(%v)", t)
src/cmd/compile/internal/gc/typecheck.go:1825: yyerror("too many arguments to make(%v)", t)
src/cmd/compile/internal/gc/typecheck.go:1838: yyerror("missing argument to new")
src/cmd/compile/internal/gc/typecheck.go:1851: yyerror("too many arguments to new(%v)", t)
src/cmd/compile/internal/gc/typecheck.go:1892: yyerror("too many arguments to recover")
src/cmd/compile/internal/gc/typecheck.go:2016: yyerror("non-bool %L used as for condition", n.Left)
src/cmd/compile/internal/gc/typecheck.go:2031: yyerror("non-bool %L used as if condition", n.Left)
src/cmd/compile/internal/gc/typecheck.go:2046: yyerror("return outside function")
src/cmd/compile/internal/gc/typecheck.go:2077: yyerror("use of .(type) outside type switch")
src/cmd/compile/internal/gc/typecheck.go:2105: yyerror("type %v must be go:notinheap", n.Left.Type)
src/cmd/compile/internal/gc/typecheck.go:2123: yyerror("cannot use unsafe.Pointer")
src/cmd/compile/internal/gc/typecheck.go:2128: yyerror("type %v is not an expression", n.Type)
src/cmd/compile/internal/gc/typecheck.go:2134: yyerror("%v is not a type", n)
src/cmd/compile/internal/gc/typecheck.go:2141: yyerror("%v used as value", n)
src/cmd/compile/internal/gc/typecheck.go:2148: yyerror("%v evaluated but not used", n)
src/cmd/compile/internal/gc/typecheck.go:2169: yyerror("invalid slice index %v (type %v)", r, t)
src/cmd/compile/internal/gc/typecheck.go:2175: yyerror("invalid slice index %v (index must be non-negative)", r)
src/cmd/compile/internal/gc/typecheck.go:2178: yyerror("invalid slice index %v (out of bounds for %d-element array)", r, tp.NumElem())
src/cmd/compile/internal/gc/typecheck.go:2181: yyerror("invalid slice index %v (out of bounds for %d-byte string)", r, len(l.Val().U.(string)))
src/cmd/compile/internal/gc/typecheck.go:2184: yyerror("invalid slice index %v (index too large)", r)
src/cmd/compile/internal/gc/typecheck.go:2194: yyerror("invalid slice index: %v > %v", lo, hi)
src/cmd/compile/internal/gc/typecheck.go:2236: yyerror("%s discards result of %v", what, n.Left)
src/cmd/compile/internal/gc/typecheck.go:2250: yyerror("%s requires function call, not conversion", what)
src/cmd/compile/internal/gc/typecheck.go:2281: yyerror("missing argument to %s: %v", p, n)
src/cmd/compile/internal/gc/typecheck.go:2287: yyerror("too many arguments to %s: %v", p, n)
src/cmd/compile/internal/gc/typecheck.go:2303: yyerror("missing argument to %v - %v", n.Op, n)
src/cmd/compile/internal/gc/typecheck.go:2309: yyerror("missing argument to %v - %v", n.Op, n)
src/cmd/compile/internal/gc/typecheck.go:2315: yyerror("too many arguments to %v - %v", n.Op, n)
src/cmd/compile/internal/gc/typecheck.go:2339: yyerror("ambiguous selector %v", errnode)
src/cmd/compile/internal/gc/typecheck.go:2341: yyerror("ambiguous selector (%v).%v", t, s)
src/cmd/compile/internal/gc/typecheck.go:2343: yyerror("ambiguous selector %v.%v", t, s)
src/cmd/compile/internal/gc/typecheck.go:2385: yyerror("invalid method expression %v (needs pointer receiver: (*%v).%S)", n, t, f2.Sym)
src/cmd/compile/internal/gc/typecheck.go:2437: yyerror("%v is both field and method", n.Sym)
src/cmd/compile/internal/gc/typecheck.go:2479: yyerror("calling method %v with receiver %L requires explicit dereference", n.Sym, n.Left)
src/cmd/compile/internal/gc/typecheck.go:2577: yyerror("cannot use %v as type %v in argument to %v%s", tn.Type, tl.Type.Elem(), call, why)
src/cmd/compile/internal/gc/typecheck.go:2579: yyerror("cannot use %v as type %v in %s%s", tn.Type, tl.Type.Elem(), desc(), why)
src/cmd/compile/internal/gc/typecheck.go:2592: yyerror("cannot use %v as type %v in argument to %v%s", tn.Type, tl.Type, call, why)
src/cmd/compile/internal/gc/typecheck.go:2594: yyerror("cannot use %v as type %v in %s%s", tn.Type, tl.Type, desc(), why)
src/cmd/compile/internal/gc/typecheck.go:2679: yyerror("invalid use of ... in call to %v", call)
src/cmd/compile/internal/gc/typecheck.go:2681: yyerror("invalid use of ... in %v", op)
src/cmd/compile/internal/gc/typecheck.go:2696: yyerror("not enough arguments in call to method expression %v\n\thave %s\n\twant %v", call, nl.retsigerr(isddd), tstruct)
src/cmd/compile/internal/gc/typecheck.go:2698: yyerror("not enough arguments in call to %v\n\thave %s\n\twant %v", call, nl.retsigerr(isddd), tstruct)
src/cmd/compile/internal/gc/typecheck.go:2701: yyerror("not enough arguments to %v\n\thave %s\n\twant %v", op, nl.retsigerr(isddd), tstruct)
src/cmd/compile/internal/gc/typecheck.go:2712: yyerror("too many arguments in call to %v\n\thave %s\n\twant %v", call, nl.retsigerr(isddd), tstruct)
src/cmd/compile/internal/gc/typecheck.go:2714: yyerror("too many arguments to %v\n\thave %s\n\twant %v", op, nl.retsigerr(isddd), tstruct)
src/cmd/compile/internal/gc/typecheck.go:2768: yyerror("duplicate field name in struct literal: %s", name)
src/cmd/compile/internal/gc/typecheck.go:2824: yyerror("duplicate key %v in map literal", n)
src/cmd/compile/internal/gc/typecheck.go:2876: yyerror("missing type in composite literal")
src/cmd/compile/internal/gc/typecheck.go:2901: yyerror("invalid pointer type %v for composite literal (use &%v instead)", t, t.Elem())
src/cmd/compile/internal/gc/typecheck.go:2908: yyerror("invalid pointer type %v for composite literal", t)
src/cmd/compile/internal/gc/typecheck.go:2918: yyerror("invalid type for composite literal: %v", t)
src/cmd/compile/internal/gc/typecheck.go:2943: yyerror("index must be non-negative integer constant")
src/cmd/compile/internal/gc/typecheck.go:2952: yyerror("duplicate index in array literal: %d", i)
src/cmd/compile/internal/gc/typecheck.go:2969: yyerror("array index %d out of bounds [0:%d]", length-1, t.NumElem())
src/cmd/compile/internal/gc/typecheck.go:2991: yyerror("missing key in map literal")
src/cmd/compile/internal/gc/typecheck.go:3029: yyerror("too many values in struct initializer")
src/cmd/compile/internal/gc/typecheck.go:3037: yyerror("implicit assignment of unexported field '%s' in %v literal", s.Name, t)
src/cmd/compile/internal/gc/typecheck.go:3048: yyerror("too few values in struct initializer")
src/cmd/compile/internal/gc/typecheck.go:3070: yyerror("invalid field name %v in struct initializer", key)
src/cmd/compile/internal/gc/typecheck.go:3090: yyerror("mixture of field:value and value initializers")
src/cmd/compile/internal/gc/typecheck.go:3099: yyerror("unknown field '%v' in struct literal of type %v", l.Sym, t)
src/cmd/compile/internal/gc/typecheck.go:3160: yyerror("cannot %s %v", verb, n)
src/cmd/compile/internal/gc/typecheck.go:3196: yyerror("cannot assign to struct field %v in map", n)
src/cmd/compile/internal/gc/typecheck.go:3200: yyerror("cannot assign to %v", n)
src/cmd/compile/internal/gc/typecheck.go:3285: yyerror("cannot assign %v to %L in multiple assignment%s", src, dst, why)
src/cmd/compile/internal/gc/typecheck.go:3401: yyerror("assignment count mismatch: %d = %d", cl, cr)
src/cmd/compile/internal/gc/typecheck.go:3552: yyerror("embedded type cannot be a pointer")
src/cmd/compile/internal/gc/typecheck.go:3604: yyerror("invalid map key type %v", e.n.Type)
src/cmd/compile/internal/gc/typecheck.go:3636: yyerror("undefined: %v", n.Sym)
src/cmd/compile/internal/gc/typecheck.go:3687: yyerror("xxx")
src/cmd/compile/internal/gc/typecheck.go:3692: yyerror("const initializer cannot be nil")
src/cmd/compile/internal/gc/typecheck.go:3698: yyerror("const initializer %v is not a constant", e)
src/cmd/compile/internal/gc/typecheck.go:3708: yyerror("invalid constant type %v", t)
src/cmd/compile/internal/gc/typecheck.go:3713: yyerror("cannot use %L as type %v in const initializer", e, t)
src/cmd/compile/internal/gc/typecheck.go:3797: yyerror("non-integer %s argument in make(%v) - %v", arg, t, n.Type)
src/cmd/compile/internal/gc/typecheck.go:3807: yyerror("negative %s argument in make(%v)", arg, t)
src/cmd/compile/internal/gc/typecheck.go:3811: yyerror("%s argument too large in make(%v)", arg, t)
src/cmd/compile/internal/gc/typecheck.go:3948: yyerrorl(fn.Func.Endlineno, "missing return at end of function")
src/cmd/compile/internal/gc/walk.go:53: yyerror("%v declared and not used", ln.Sym)
src/cmd/compile/internal/gc/walk.go:57: yyerror("%v declared and not used", ln.Sym)
src/cmd/compile/internal/gc/walk.go:122: yyerror("call arg not assignment")
src/cmd/compile/internal/gc/walk.go:132: yyerror("call argument store does not use OINDREGSP")
src/cmd/compile/internal/gc/walk.go:137: // yyerror("call arg assign not indreg(SP)");
src/cmd/compile/internal/gc/walk.go:159: yyerror("%v is not a top level statement", n.Sym)
src/cmd/compile/internal/gc/walk.go:161: yyerror("%v is not a top level statement", n.Op)
src/cmd/compile/internal/gc/walk.go:229: yyerror("%v escapes to heap, not allowed in runtime.", v)
src/cmd/compile/internal/gc/walk.go:244: yyerror("case statement out of place")
src/cmd/compile/internal/gc/walk.go:364: yyerror("fallthrough statement out of place")
src/cmd/compile/internal/gc/walk.go:720: yyerror("%v is go:notinheap; heap allocation disallowed", r.Type.Elem())
src/cmd/compile/internal/gc/walk.go:1133: yyerror("index out of bounds")
src/cmd/compile/internal/gc/walk.go:1141: yyerror("index out of bounds")
src/cmd/compile/internal/gc/walk.go:1147: yyerror("index out of bounds")
src/cmd/compile/internal/gc/walk.go:1424: yyerror("%v is go:notinheap; heap allocation disallowed", t.Elem())
src/cmd/compile/internal/gc/walk.go:1676: yyerror("error in shape across %+v %v %+v / %d %d [%s]", nln, op, nrn, len(nl), len(nr), Curfn.Func.Nname.Sym.Name)
src/cmd/compile/internal/gc/walk.go:1743: yyerror("ascompatet: assignment count mismatch: %d = %d", nl.Len(), nr.NumFields())
src/cmd/compile/internal/gc/walk.go:1863: yyerror("... must be last argument")
src/cmd/compile/internal/gc/walk.go:1890: yyerror("not enough arguments to %v\n\t%s\n\t%s", op, l1, l2)
src/cmd/compile/internal/gc/walk.go:1892: yyerror("too many arguments to %v\n\t%s\n\t%s", op, l1, l2)
src/cmd/compile/internal/gc/walk.go:2033: yyerror("%v is go:notinheap; heap allocation disallowed", t)
src/cmd/compile/internal/gc/walk.go:2716: yyerror("addstr count %d too small", c)
src/cmd/compile/internal/gc/walk.go:3926: yyerror("tracked field must be in named struct type")
src/cmd/compile/internal/gc/walk.go:3929: yyerror("tracked field must be exported (upper case)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment