FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bugs in latest Harbour
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bugs in latest Harbour
Posted: Sat Jan 09, 2016 11:13 AM
Harbour doesn't recognize the following operator:

Code (fw): Select all Collapse
^^


Compiling the following sample

Code (fw): Select all Collapse
STATIC n


FUNCTION MAIN()

    n = 1

    ? n

    RETURN NIL


I get

Code (fw): Select all Collapse
Warning W0003  Variable 'N' declared but not used in function 'TEST(1)'
Warning W0001  Ambiguous reference 'N'
Warning W0001  Ambiguous reference 'N'


EMG
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Bugs in latest Harbour
Posted: Sat Jan 09, 2016 05:44 PM

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

OR

Delete /n flag in compiling line

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bugs in latest Harbour
Posted: Sat Jan 09, 2016 06:56 PM
This is a sample of the bug:

Code (fw): Select all Collapse
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 (fw): Select all Collapse
STATIC n


FUNCTION MAIN()

    n = 1

    ? n

    RETURN NIL


EMG
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Bugs in latest Harbour
Posted: Sat Jan 09, 2016 09:32 PM

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

Remember they are simple warnings.

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bugs in latest Harbour
Posted: Sat Jan 09, 2016 09:48 PM
I can't try with Clipper. With xHarbour I correctly get:

Code (fw): Select all Collapse
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 <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->


EMG
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 08:58 AM
My try with harbour r1512050958 it's ok.
Code (fw): Select all Collapse
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.
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 10:48 AM
I just tried with

Code (fw): Select all Collapse
Harbour 3.2.0dev (r1601101942)


Same problem. :-)

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 03:21 PM
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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 03:52 PM

Thank you! :-)

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 03:52 PM
And what about

Code (fw): Select all Collapse
^^


operator?

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 03:55 PM

Enrico,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 04:15 PM
Here it is:

Code (fw): Select all Collapse
FUNCTION MAIN()

    ? 1 ^^ 2

    RETURN NIL


Code (fw): Select all Collapse
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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 04:20 PM

Enrico,

Przemek already answered us... :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 04:33 PM

And what has he answered?

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bugs in latest Harbour
Posted: Mon Jan 11, 2016 04:44 PM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com