This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gcc-in-cxx] Correct enum type
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 31 Jan 2009 21:56:23 -0800
- Subject: [gcc-in-cxx] Correct enum type
This patch corrects the type of an enum. This does not matter in C,
but it matters in C++. Committed to gcc-in-cxx branch.
Ian
2009-01-31 Ian Lance Taylor <iant@google.com>
* cp/semantics.c (finish_omp_clauses): Change c_kind to enum
omp_clause_code.
Index: cp/semantics.c
===================================================================
--- cp/semantics.c (revision 143841)
+++ cp/semantics.c (working copy)
@@ -3603,7 +3603,7 @@ finish_omp_clauses (tree clauses)
for (pc = &clauses, c = clauses; c ; c = *pc)
{
- enum tree_code c_kind = OMP_CLAUSE_CODE (c);
+ enum omp_clause_code c_kind = OMP_CLAUSE_CODE (c);
bool remove = false;
bool need_complete_non_reference = false;
bool need_default_ctor = false;