~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/cmd/gc/typecheck.c

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
2716
2716
        default:
2717
2717
                fatal("typecheckdef %O", n->op);
2718
2718
 
 
2719
        case OGOTO:
 
2720
        case OLABEL:
 
2721
                // not really syms
 
2722
                break;
 
2723
 
2719
2724
        case OLITERAL:
2720
2725
                if(n->ntype != N) {
2721
2726
                        typecheck(&n->ntype, Etype);
2772
2777
                if(n->defn == N) {
2773
2778
                        if(n->etype != 0)       // like OPRINTN
2774
2779
                                break;
2775
 
                        if(nerrors > 0) {
 
2780
                        if(nsavederrors+nerrors > 0) {
2776
2781
                                // Can have undefined variables in x := foo
2777
2782
                                // that make x have an n->ndefn == nil.
2778
2783
                                // If there are other errors anyway, don't