[svn:parrot] r39654 - trunk/compilers/imcc

NotFound at svn.parrot.org NotFound at svn.parrot.org
Thu Jun 18 17:41:32 UTC 2009


Author: NotFound
Date: Thu Jun 18 17:41:31 2009
New Revision: 39654
URL: https://trac.parrot.org/parrot/changeset/39654

Log:
[cage] add file/line info to duplicate local warning, TT #767

Modified:
   trunk/compilers/imcc/symreg.c

Modified: trunk/compilers/imcc/symreg.c
==============================================================================
--- trunk/compilers/imcc/symreg.c	Thu Jun 18 17:08:09 2009	(r39653)
+++ trunk/compilers/imcc/symreg.c	Thu Jun 18 17:41:31 2009	(r39654)
@@ -641,8 +641,10 @@
     ASSERT_ARGS(mk_ident)
     char   * const fullname = _mk_fullname(pesky_global__namespace, name);
     SymReg *r = get_sym_by_name(&(IMCC_INFO(interp)->last_unit->hash), name);
-    if (r && r->set != t)
+    if (r && r->set != t) {
+        IMCC_print_inc(interp);
         IMCC_warning(interp, "Duplicated IDENTIFIER '%s'\n", fullname);
+    }
 
     r = mk_symreg(interp, fullname, t);
     r->type = VTIDENTIFIER;


More information about the parrot-commits mailing list