Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/ckit/BUGS
ViewVC logotype

Diff of /sml/trunk/ckit/BUGS

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 654, Thu Jun 8 21:38:04 2000 UTC revision 665, Fri Jun 16 04:43:57 2000 UTC
# Line 33  Line 33 
33    
34    
35  ----------------------------------------------------------------------  ----------------------------------------------------------------------
 NUMBER: 14  
 SUBMITTER: Alexey Loginov <alexey@cs.wisc.edu>  
 DATE: 4/17/00  
 TEST:  
 STATUS: open  
 DESCRIPTION: array formals  
   
 This one is similar to the ?: bug we reported earlier (Bug number 8).  
   
 void foo(int a[]);  
   
 int main() {  
   int * ip;  
   foo(ip);  
 }  
   
 Output:  
   
 "tt.c":5.3-10: error: Bad function call:  
                arg 1 has type int * but fn parameter has type int []  
   
 Correct C output is still produced but the implicit type of ip inside  
 the call to foo has int array type.  This is a problem for our  
 instrumentation.  
   
   
 ----------------------------------------------------------------------  
36  NUMBER: 15  NUMBER: 15
37  SUBMITTER: Alexey Loginov <alexey@cs.wisc.edu>  SUBMITTER: Alexey Loginov <alexey@cs.wisc.edu>
38  DATE: 4/17/00  DATE: 4/17/00

Legend:
Removed from v.654  
changed lines
  Added in v.665

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0