Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 556 for Invalid (0.65 sec)

  1. src/cmd/asm/internal/asm/testdata/amd64error.s

    	MOVQ CR8, (AX)                  // ERROR "invalid instruction"
    	MOVQ (AX), CR0                  // ERROR "invalid instruction"
    	MOVQ (AX), CR2                  // ERROR "invalid instruction"
    	MOVQ (AX), CR3                  // ERROR "invalid instruction"
    	MOVQ (AX), CR4                  // ERROR "invalid instruction"
    	MOVQ (AX), CR8                  // ERROR "invalid instruction"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/parser_test.go

    		// invalid //line directives with two colons
    		{"//line ::\n", "invalid line number: ", filename, 1, 10},
    		{"//line ::x\n", "invalid line number: x", filename, 1, 10},
    		{"//line foo::123abc\n", "invalid line number: 123abc", filename, 1, 13},
    		{"//line foo::0\n", "invalid line number: 0", filename, 1, 13},
    		{"//line foo:0:1\n", "invalid line number: 0", filename, 1, 12},
    
    		{"//line :123:0\n", "invalid column number: 0", filename, 1, 13},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/assignments.go

    // If lhs doesn't have a type yet, it is given the type of x,
    // or Typ[Invalid] in case of an error.
    // If the initialization check fails, x.mode is set to invalid.
    func (check *Checker) initVar(lhs *Var, x *operand, context string) {
    	if x.mode == invalid || !isValid(x.typ) || !isValid(lhs.typ) {
    		if lhs.typ == nil {
    			lhs.typ = Typ[Invalid]
    		}
    		x.mode = invalid
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/index.go

    	if !valid {
    		check.errorf(e.Pos(), NonSliceableOperand, invalidOp+"cannot index %s", x)
    		check.use(e.Index)
    		x.mode = invalid
    		return false
    	}
    
    	index := check.singleIndex(e)
    	if index == nil {
    		x.mode = invalid
    		return false
    	}
    
    	// In pathological (invalid) cases (e.g.: type T1 [][[]T1{}[0][0]]T0)
    	// the element type may be accessed before it's set. Make sure we have
    	// a valid type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/decl.go

    			check.errorf(obj, InvalidDeclCycle, "invalid recursive type: %s refers to itself", objName)
    		} else {
    			check.errorf(obj, InvalidDeclCycle, "invalid cycle in declaration: %s refers to itself", objName)
    		}
    		return
    	}
    
    	err := check.newError(InvalidDeclCycle)
    	if tname != nil {
    		err.addf(obj, "invalid recursive type %s", objName)
    	} else {
    		err.addf(obj, "invalid cycle in declaration of %s", objName)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/operand.go

    // The zero value of operand is a ready to use invalid operand.
    type operand struct {
    	mode operandMode
    	expr syntax.Expr
    	typ  Type
    	val  constant.Value
    	id   builtinId
    }
    
    // Pos returns the position of the expression corresponding to x.
    // If x is invalid the position is nopos.
    func (x *operand) Pos() syntax.Pos {
    	// x.expr may not be set if x is invalid
    	if x.expr == nil {
    		return nopos
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/builtins_test.go

    	{"cap", `var s P; _ = cap(s)`, `func(P) int`},
    
    	{"len", `_ = len("foo")`, `invalid type`}, // constant
    	{"len", `var s string; _ = len(s)`, `func(string) int`},
    	{"len", `var s [10]int; _ = len(s)`, `invalid type`},  // constant
    	{"len", `var s [10]int; _ = len(&s)`, `invalid type`}, // constant
    	{"len", `var s []int64; _ = len(s)`, `func([]int64) int`},
    	{"len", `var c chan<-bool; _ = len(c)`, `func(chan<- bool) int`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/testdata/arm64error.s

    	VFMLS	V1.B16, V12.B16, V3.B16                          // ERROR "invalid arrangement"
    	VFMLS	V1.H4, V12.H4, V3.H4                             // ERROR "invalid arrangement"
    	VFMLS	V1.H8, V12.H8, V3.H8                             // ERROR "invalid arrangement"
    	VFMLS	V1.H4, V12.H4, V3.H4                             // ERROR "invalid arrangement"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 03:28:17 UTC 2023
    - 37.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/expr.go

    	var y operand
    
    	check.expr(nil, x, lhs)
    	check.expr(nil, &y, rhs)
    
    	if x.mode == invalid {
    		return
    	}
    	if y.mode == invalid {
    		x.mode = invalid
    		x.expr = y.expr
    		return
    	}
    
    	if isShift(op) {
    		check.shift(x, &y, e, op)
    		return
    	}
    
    	check.matchTypes(x, &y)
    	if x.mode == invalid {
    		return
    	}
    
    	if isComparison(op) {
    		check.comparison(x, &y, op, false)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typexpr.go

    			// If typ.base is invalid, it's unlikely that *base is particularly
    			// useful - even a valid dereferenciation will lead to an invalid
    			// type again, and in some cases we get unexpected follow-on errors
    			// (e.g., go.dev/issue/49005). Return an invalid type instead.
    			if !isValid(typ.base) {
    				return Typ[Invalid]
    			}
    			return typ
    		}
    
    		check.errorf(e0, NotAType, "%s is not a type", e0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top