Bugs in latest Harbour

User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Bugs in latest Harbour

Post by Enrico Maria Giordano »

Harbour doesn't recognize the following operator:

Code: Select all | Expand

^^


Compiling the following sample

Code: Select all | Expand

STATIC n


FUNCTION MAIN()

    n = 1

    ? n

    RETURN NIL


I get

Code: Select all | Expand

Warning W0003  Variable 'N' declared but not used in function 'TEST(1)'
Warning W0001  Ambiguous reference 'N'
Warning W0001  Ambiguous reference 'N'


EMG
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Bugs in latest Harbour

Post by hmpaquito »

Impossible. You are wrong. Test function is not defined in your prg sample

OR

Delete /n flag in compiling line
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Bugs in latest Harbour

Post by Enrico Maria Giordano »

This is a sample of the bug:

Code: Select all | Expand

Microsoft Windows [Versione 10.0.10586]
(c) 2015 Microsoft Corporation. Tutti i diritti sono riservati.

E:\HARBOUR>SET HARBOURCMD=/a /es2 /gc0 /m /n /q /w3

E:\HARBOUR>harbour test
Harbour 3.2.0dev (r1601050904)
Copyright (c) 1999-2015, http://harbour-project.org/
test.prg(4) Warning W0003  Variable 'N' declared but not used in function 'TEST(1)'
test.prg(6) Warning W0001  Ambiguous reference 'N'
test.prg(8) Warning W0001  Ambiguous reference 'N'

No code generated.


Code: Select all | Expand

STATIC n


FUNCTION MAIN()

    n = 1

    ? n

    RETURN NIL


EMG
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Bugs in latest Harbour

Post by hmpaquito »

Try with clipper and xharbour compiler.
After write here results.

Remember they are simple warnings.
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Bugs in latest Harbour

Post by Enrico Maria Giordano »

I can't try with Clipper. With xHarbour I correctly get:

Code: Select all | Expand

E:\XHARBOUR>SET HARBOURCMD=/a /es2 /gc0 /m /n /q /w3

E:\XHARBOUR>harbour test
xHarbour 1.2.3 Intl. (SimpLex) (Build 20151110)
Copyright 1999-2015, http://www.xharbour.org http://www.harbour-project.org/


EMG
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Bugs in latest Harbour

Post by hmpaquito »

My try with harbour r1512050958 it's ok.

Code: Select all | Expand


C:\P>\hb32\bin\harbour test.prg /a /es2 /gc0 /m /n /w3
Harbour 3.2.0dev (r1512050958)
Copyright (c) 1999-2015, http://harbour-project.org/
Compiling 'test.prg'...
Lines 10, Functions/Procedures 1
Generating C source output to 'test.c'... Done.


So, you are ok. Compiling error is on latest harbour.
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Bugs in latest Harbour

Post by Enrico Maria Giordano »

I just tried with

Code: Select all | Expand

Harbour 3.2.0dev (r1601101942)


Same problem. :-(

EMG
User avatar
Antonio Linares
Site Admin
Posts: 42520
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: Bugs in latest Harbour

Post by Antonio Linares »

Enrico,

Already reported to the Harbour developers group:

https://groups.google.com/forum/#!topic/harbour-devel/DEFqWDk-jgQ
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 42520
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: Bugs in latest Harbour

Post by Antonio Linares »

Enrico,

Please post here a small example so Harbour devs review it too, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Bugs in latest Harbour

Post by Enrico Maria Giordano »

Here it is:

Code: Select all | Expand

FUNCTION MAIN()

    ? 1 ^^ 2

    RETURN NIL


Code: Select all | Expand

Harbour 3.2.0dev (r1601101942)
Copyright (c) 1999-2015, http://harbour-project.org/
TEST2.prg(3) Error E0030  Syntax error "syntax error at '^'"
1 error

No code generated.


EMG
User avatar
Antonio Linares
Site Admin
Posts: 42520
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: Bugs in latest Harbour

Post by Antonio Linares »

Enrico,

Przemek already answered us... :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 42520
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: Bugs in latest Harbour

Post by Antonio Linares »

Please read the thread, I posted the url :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply