Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 173230 - type-guard-stmt is not accepting intrinsic types
Summary: type-guard-stmt is not accepting intrinsic types
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Lang (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Craig E Rasmussen CLA
QA Contact: Beth Tibbitts CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-07 00:35 EST by Chris Rickett CLA
Modified: 2011-01-31 08:09 EST (History)
0 users

See Also:


Attachments
JUnit classes to run the testcases. (2.05 KB, application/x-gzip)
2007-02-07 00:42 EST, Chris Rickett CLA
g.watson: iplog+
Details
copy of my parser-test-files directory (14.10 KB, application/x-gzip)
2007-02-07 00:44 EST, Chris Rickett CLA
g.watson: iplog+
Details
patch to fix type-guard statements (162.18 KB, application/x-gzip)
2007-02-07 13:32 EST, Chris Rickett CLA
no flags Details
fixed version of patch for type-guard-statements (162.21 KB, application/x-gzip)
2007-02-07 13:39 EST, Chris Rickett CLA
g.watson: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Rickett CLA 2007-02-07 00:35:01 EST
Build ID: I20061214-1445

Steps To Reproduce:
The following test case will reproduce the bug:

select type (p_or_c)
class is (point)
   print *, 'class is point'
type is (integer(c_int))
   print *, 'type is integer'
end select

end


More information:
Comment 1 Chris Rickett CLA 2007-02-07 00:42:32 EST
Created attachment 58421 [details]
JUnit classes to run the testcases.

Includes the JUnit classes to run the testsuite.  Test classes were updated to correctly use a Boolean object and to include the new tests.
Comment 2 Chris Rickett CLA 2007-02-07 00:44:02 EST
Created attachment 58422 [details]
copy of my parser-test-files directory

This tarball is a copy of my local parser-test-files directory that contains the current tests and a number of new ones.
Comment 3 Chris Rickett CLA 2007-02-07 13:32:22 EST
Created attachment 58467 [details]
patch to fix type-guard statements

The files in the tarball should fix type-guard-statements, allowing them to contain intrinsic types in the 'type is' statement.
Comment 4 Chris Rickett CLA 2007-02-07 13:39:35 EST
Created attachment 58469 [details]
fixed version of patch for type-guard-statements

The patch I just submitted forgot to include the package declaration for eclipse.  I apologize for not catching this.  I had tested the patch within eclipse and it worked, then I cleaned up the grammar file and rebuilt it, but forgot to put the package declaration back in.
Comment 5 Chris Rickett CLA 2007-07-10 17:49:51 EDT
This bug has been fixed and a test case added to tests/bug-reports.