https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104827

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
           Keywords|                            |ice-on-invalid-code

--- Comment #6 from anlauf at gcc dot gnu.org ---
(In reply to kargls from comment #5)
> This appears to be fixed in that the ICE no longer occurs.

Intel also rejects both variants as invalid code:

% ifx pr104827-z1.f90 -fopenmp
pr104827-z1.f90(2): error #5082: Syntax error, found IDENTIFIER 'F' when
expecting one of: VENDOR EXTENSION REQUIRES
   !$omp declare variant(a) match(implementation={f([1])})
--------------------------------------------------^
pr104827-z1.f90(2): error #9091: An OpenMP* trait-property-name must be an
identifier or a string-literal.
   !$omp declare variant(a) match(implementation={f([1])})
-----------------------------------------------------^
pr104827-z1.f90(2): error #8952: The name is not found or is inaccessible.  
[A]
   !$omp declare variant(a) match(implementation={f([1])})
-------------------------^
compilation aborted for pr104827-z1.f90 (code 1)


%ifx pr104827-z2.f90 -fopenmp
pr104827-z2.f90(2): error #5082: Syntax error, found IDENTIFIER 'F' when
expecting one of: VENDOR EXTENSION REQUIRES
   !$omp declare variant(a) match(implementation={f(1)})
--------------------------------------------------^
pr104827-z2.f90(2): error #9091: An OpenMP* trait-property-name must be an
identifier or a string-literal.   [1]
   !$omp declare variant(a) match(implementation={f(1)})
----------------------------------------------------^
pr104827-z2.f90(2): error #8952: The name is not found or is inaccessible.  
[A]
   !$omp declare variant(a) match(implementation={f(1)})
-------------------------^
compilation aborted for pr104827-z2.f90 (code 1)


Adding ice-on-invalid to keywords.

Likely fixed during 15-development.

Reply via email to