69fe9aaafdd6a141610e86a777d325db75422070Mark Andrews * CDDL HEADER START
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence * The contents of this file are subject to the terms of the
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson * Common Development and Distribution License, Version 1.0 only
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson * (the "License"). You may not use this file except in compliance
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson * with the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson * If applicable, add the following below this CDDL HEADER, with the
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson * fields enclosed by brackets "[]" replaced with your own identifying
69fe9aaafdd6a141610e86a777d325db75422070Mark Andrews * information: Portions Copyright [yyyy] [name of copyright owner]
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein * CDDL HEADER END
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence * Use is subject to license terms.
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington#pragma ident "%Z%%M% %I% %E% SMI"
9259fed3d8ac5d1efa9b5a647969e40c9c934484Andreas Gustafsson * This enum definition is used to define a set of error tags associated with
9259fed3d8ac5d1efa9b5a647969e40c9c934484Andreas Gustafsson * the D compiler's various error conditions. The shell script mkerrtags.sh is
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson * used to parse this file and create a corresponding dt_errtags.c source file.
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson * If you do something other than add a new error tag here, you may need to
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson * update the mkerrtags shell script as it is based upon simple regexps.
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_UNKNOWN, /* unknown D compiler error */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_SYNTAX, /* syntax error in input stream */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_ASRELO, /* relocation remains against symbol */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_CG_EXPR, /* tracing function called from expr */
14c5931d3d52baf17a786153c35c05fa62f916dcBrian Wellington D_CG_DYN, /* expression returns dynamic result */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_ATTR_MIN, /* attributes less than amin setting */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_PDESC_ZERO, /* probedesc matches zero probes */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_PDESC_INVAL, /* probedesc is not valid */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_PRED_SCALAR, /* predicate must be of scalar type */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_FUNC_IDENT, /* function designator is not ident */
23fdb6a5a3d3d0e427682b68eea9553d2d326ad4Mark Andrews D_FUNC_UNDEF, /* function ident is not defined */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_FUNC_IDKIND, /* function ident is of wrong idkind */
14c5931d3d52baf17a786153c35c05fa62f916dcBrian Wellington D_OFFSETOF_TYPE, /* offsetof arg is not sou type */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_OFFSETOF_BITFIELD, /* offsetof applied to field member */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_SIZEOF_BITFIELD, /* sizeof applied to field member */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_STRINGOF_TYPE, /* invalid stringof type */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_OP_IDENT, /* operand must be an identifier */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_OP_INT, /* operand must be integral type */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_OP_SCALAR, /* operand must be scalar type */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_OP_ARITH, /* operand must be arithmetic type */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_OP_WRITE, /* operand must be writable variable */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_OP_INCOMPAT, /* operand types are not compatible */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_OP_VFPTR, /* operand cannot be void or func ptr */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_OP_ARRFUN, /* operand cannot be array or func */
23fdb6a5a3d3d0e427682b68eea9553d2d326ad4Mark Andrews D_OP_SOU, /* operand must be struct or union */
a14762f207c36eb0171328802a570ceeddef581dDanny Mayer D_OP_INCOMPLETE, /* operand is an incomplete type */
23fdb6a5a3d3d0e427682b68eea9553d2d326ad4Mark Andrews D_OP_DYN, /* operand cannot be of dynamic type */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_AGG_REDEF, /* aggregation cannot be redefined */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_AGG_FUNC, /* aggregating function required */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_AGG_MDIM, /* aggregation used as multi-dim arr */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_ARR_BADREF, /* access non-array using tuple */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_ARR_LOCAL, /* cannot define local assc array */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_DIV_ZERO, /* division by zero detected */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_DEREF_NONPTR, /* dereference non-pointer type */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_DEREF_VOID, /* dereference void pointer */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_DEREF_FUNC, /* dereference function pointer */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_ADDROF_LVAL, /* unary & applied to non-lvalue */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_ADDROF_VAR, /* unary & applied to variable */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_ADDROF_BITFIELD, /* unary & applied to field member */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_XLATE_REDECL, /* translator redeclared */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_XLATE_NOCONV, /* no conversion for member defined */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_XLATE_NONE, /* no translator for type combo */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_XLATE_SOU, /* dst must be struct or union type */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_XLATE_INCOMPAT, /* translator member type incompat */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_XLATE_MEMB, /* translator member is not valid */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_CAST_INVAL, /* invalid cast expression */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_PRAGCTL_INVAL, /* invalid control directive */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_PRAGMA_INVAL, /* invalid compiler pragma */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_PRAGMA_UNUSED, /* unused compiler pragma */
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington D_PRAGMA_MALFORM, /* malformed #pragma argument list */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_PRAGMA_OPTSET, /* failed to set #pragma option */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_PRAGMA_SCOPE, /* #pragma identifier scope error */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_PRAGMA_DEPEND, /* #pragma dependency not satisfied */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_MACRO_UNDEF, /* macro parameter is not defined */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_MACRO_OFLOW, /* macro parameter integer overflow */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_MACRO_UNUSED, /* macro parameter is never used */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_INT_OFLOW, /* integer constant overflow */
909e3c228813f05bcdebf403a69ed18406f86ec4Brian Wellington D_INT_DIGIT, /* integer digit is not valid */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_CHR_NL, /* newline in character constant */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_CHR_NULL, /* empty character constant */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_CHR_OFLOW, /* character constant is too long */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_IDENT_BADREF, /* identifier expected type mismatch */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_IDENT_UNDEF, /* identifier is not known/defined */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_IDENT_AMBIG, /* identifier is ambiguous (var/enum) */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_SYM_BADREF, /* kernel/user symbol ref mismatch */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_SYM_NOTYPES, /* no CTF data available for sym ref */
f93d33e24fdf76eb2558168f018b8992bcfc5681Andreas Gustafsson D_SYM_MODEL, /* module/program data model mismatch */
#ifdef __cplusplus