Ticket #21 (defect)
Opened 1 year ago
Last modified 11 months ago
declaration_specifier_neg: syntax error
Status: closed (invalid)
| Reported by: | gary | Assigned to: | apokayi |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | component1 | Version: | 1.0 |
| Keywords: | guts | Cc: | |
Although declaration_specifier_neg is intended to be a negative test, it is failing with a syntax error, which is perhaps unintentional?
--------------> Working on unit -- declaration_specifier_neg\n declaration_specifier_neg.upc:40: error: syntax error before '[' token declaration_specifier_neg.upc:42: warning: type defaults to 'int' in declaration of 'A' declaration_specifier_neg.upc:42: warning: data definition has no type or storage class Compilation was UNSUCCESSFUL for the negative unit [declaration_specifier_neg] Note that this is the EXPECTED result since the unit is negative The unit will not be run!!! TEST PASSED for the unit [declaration_specifier_neg]
The offending lines appear as follows:
35
36 #define N 10
37 #define M 15
38
39 typedef shared[N] int sh_block_N_t;
40 typedef sh_block_N_t[M] sh_block_M_t;
41
42 sh_block_M_t A[THREADS];
43
44
45 int
46 main()
47 {
48 /*
49 * To check that the declaration specifiers in declarations cannot
50 * include, either directly or indirectly, more than one block size
51 * compiler MUST report an ERROR here !!!
52 */
53
54 return 0;
55 }
Change History
09/06/07 16:55:41: Modified by sbahra
- owner changed from somebody to apokayi.
10/14/07 05:22:50: Modified by apokayi
- status changed from new to closed.
- resolution set to invalid.

basically test was trying to test whether the compiler is catching the indirect declaration of two block sizes in a single declaration. Although the error is not self explanatory, it seems to be catching that one.