Bug 29050 - segfault when too few values are in data statement of character array
Summary: segfault when too few values are in data statement of character array
Status: RESOLVED DUPLICATE of bug 29051
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-13 00:34 UTC by Bud Davis
Modified: 2006-09-13 04:18 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bud Davis 2006-09-13 00:34:45 UTC
[bdavis@localhost current]$ cat f.f
       character*10 a(4,2) /'aaa','bbb','ccc','ddd'/
       end
[bdavis@localhost current]$ /usr/local/bin/gfortran -c f.f
f.f:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[bdavis@localhost current]$ g77 f.f
f.f: In program `MAIN__':
f.f:1:
          character*10 a(4,2) /'aaa','bbb','ccc','ddd'/
                                                      ^
Too few initial values in list of initializers for `a' at (^)
Comment 1 Andrew Pinski 2006-09-13 04:18:25 UTC

*** This bug has been marked as a duplicate of 29051 ***