---
title: "SD0042: conflicting fp64 guard declaration in TypeShade"
description: "SD0042, an error code of the TypeShade compiler. conflicting fp64 guard declaration"
url: https://typeshade.dev/reference/errors/sd0042/
language: en
---

# `SD0042`

Core code

conflicting fp64 guard declaration

No `"use typeshade"` program on this site raises this code, so the page has no example. The [`fn()`](https://typeshade.dev/api/fn/) builder builds the IR directly and reaches the check at the lines under Source.

The registry text and every compiler message on these pages are the compiler's own English.

## How to fix it

The registry's hint: the '\_fp64' binding is reserved for the auto-injected guard texture (`texture_2d`<`f32`>) — remove the conflicting declaration, or pin the slot with fp64Guard({ group, binding })

## See also

- [Emulated double](https://typeshade.dev/guide/language/from-typescript/double/)
- [`TypeShadeError`](https://typeshade.dev/api/typeshadeerror/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

Where the compiler raises this code at commit af54ddad5, one line per file:

- [`src/core/passes/fp64-lower/guard.ts:158`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/passes/fp64-lower/guard.ts#L158)
