Ticket #3541 (new defect)

Opened 9 months ago

Last modified 7 months ago

Automatic compiling of included scripts vs explicit compiling conflict

Reported by: Michael Placentra II <nothingsoriginalontheinternet@gmail.com> Assigned to: weyrick
Priority: normal Milestone: 3.1.0 beta
Component: Build System Version: trunk
Severity: major Keywords: bigloo define duplicate include
Cc:

Description

The following test won't compile (for command-line):

index.php:

<?php include 'a.php'; ?>

a.php:

<?php echo "hi from a.php\n"; ?>

command:

pcc index.php a.php

It compiles when a.php is not explicitly compiled by listing it on the compile command, or when 'a.php' is not included and automatically compiled. I think there should be a quick check if it was already put in there for compiling during automatic adds.

This is the error:

ERR: File "index.scm", line 103, character 2393:
ERR: #  (define +include+:dir/b.php
ERR: #  ^
ERR: # *** ERROR:top-level:+include+:dir/b.php
ERR: # Illegal duplicated definition -- (define (+include+:dir/b.php argv) (begin (s ...

Change History

04/11/08 10:40:21 changed by weyrick

  • owner changed from anonymous to weyrick.