This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

other/9391: when trying to compile header files, gcc emits an error, then compiles everything, and only then bails out


>Number:         9391
>Category:       other
>Synopsis:       when trying to compile header files, gcc emits an error, then compiles everything, and only then bails out
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 21 18:15:59 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     stefaandr@hotmail.com
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
> t.h
echo 'int main() {};' > t2.cpp
g++ -o test t.h t2.cpp

if you put a code-error in the .cpp file, put in a large quantity of code, of simply use "-v", you can see it compiles the .cpp files you give on the command-line.
I didn't think gcc would stop after a 5 minute long compilation, because of an error it gave even before starting compilation :)
>How-To-Repeat:
> t.h
echo 'int main() {};' > t2.cpp
g++ -o test t.h t2.cpp
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]