Bugs in latest Harbour

Bugs in latest Harbour

Postby Enrico Maria Giordano » Sat Jan 09, 2016 11:13 am

Harbour doesn't recognize the following operator:

Code: Select all  Expand view  RUN
^^


Compiling the following sample

Code: Select all  Expand view  RUN
STATIC n


FUNCTION MAIN()

    n = 1

    ? n

    RETURN NIL


I get

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


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bugs in latest Harbour

Postby hmpaquito » Sat Jan 09, 2016 5:44 pm

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

OR

Delete /n flag in compiling line
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Bugs in latest Harbour

Postby Enrico Maria Giordano » Sat Jan 09, 2016 6:56 pm

This is a sample of the bug:

Code: Select all  Expand view  RUN
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 view  RUN
STATIC n


FUNCTION MAIN()

    n = 1

    ? n

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bugs in latest Harbour

Postby hmpaquito » Sat Jan 09, 2016 9:32 pm

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

Remember they are simple warnings.
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Bugs in latest Harbour

Postby Enrico Maria Giordano » Sat Jan 09, 2016 9:48 pm

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

Code: Select all  Expand view  RUN
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
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bugs in latest Harbour

Postby hmpaquito » Mon Jan 11, 2016 8:58 am

My try with harbour r1512050958 it's ok.
Code: Select all  Expand view  RUN

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.
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Bugs in latest Harbour

Postby Enrico Maria Giordano » Mon Jan 11, 2016 10:48 am

I just tried with

Code: Select all  Expand view  RUN
Harbour 3.2.0dev (r1601101942)


Same problem. :-(

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bugs in latest Harbour

Postby Antonio Linares » Mon Jan 11, 2016 3: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Re: Bugs in latest Harbour

Postby Enrico Maria Giordano » Mon Jan 11, 2016 3:52 pm

And what about

Code: Select all  Expand view  RUN
^^


operator?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bugs in latest Harbour

Postby Antonio Linares » Mon Jan 11, 2016 3:55 pm

Enrico,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bugs in latest Harbour

Postby Enrico Maria Giordano » Mon Jan 11, 2016 4:15 pm

Here it is:

Code: Select all  Expand view  RUN
FUNCTION MAIN()

    ? 1 ^^ 2

    RETURN NIL


Code: Select all  Expand view  RUN
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
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bugs in latest Harbour

Postby Antonio Linares » Mon Jan 11, 2016 4:20 pm

Enrico,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bugs in latest Harbour

Postby Enrico Maria Giordano » Mon Jan 11, 2016 4:33 pm

And what has he answered?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bugs in latest Harbour

Postby Antonio Linares » Mon Jan 11, 2016 4:44 pm

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 57 guests