- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
I am getting a syntax error when trying to construct an array with a type specifier, when the type is a derived type.
program test type :: tp integer :: a end type type(tp) :: u(0) = [tp ::] ! error #5082: Syntax error, found '::' when expecting one of: ] , (/ : type(tp) :: v(2) = [tp :: tp(0), tp(1)] ! error #5082: Syntax error, found '::' when expecting one of: ] , (/ : type(tp) :: w(2) = [tp(0), tp(1)] ! no error integer :: x(2) = [integer :: 0, 1] ! no error end
My compiler version is 18.0.2.185 Build 20180210 x64 on Windows.
I can compiler and run the sample code without problems in gfortran.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Still fails in 19.0. I concur that the syntax should be accepted. Please report this through https://supporttickets.intel.com/?lang=en-US

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page