symbol.c (check_conflict): Add conflict between VOLATILE attribute and program name.
fortran/ 2006-11-20 Tobias Burnus <burnus@net-b.de> * symbol.c (check_conflict): Add conflict between VOLATILE attribute and program name. testsuite/ 2006-11-20 Tobias Burnus <burnus@net-b.de> * gfortran.dg/volatile3.f90: Add conflict test. From-SVN: r119025
This commit is contained in:
parent
9e08816049
commit
d7043acd94
@ -1,3 +1,8 @@
|
||||
2006-11-20 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
* symbol.c (check_conflict): Add conflict between VOLATILE
|
||||
attribute and program name.
|
||||
|
||||
2006-11-20 Bernhard Fischer <aldot@gcc.gnu.org>
|
||||
|
||||
PR fortran/24783
|
||||
|
@ -432,6 +432,7 @@ check_conflict (symbol_attribute * attr, const char * name, locus * where)
|
||||
conf2 (dimension);
|
||||
conf2 (dummy);
|
||||
conf2 (save);
|
||||
conf2 (volatile_);
|
||||
conf2 (pointer);
|
||||
conf2 (target);
|
||||
conf2 (external);
|
||||
|
@ -1,3 +1,7 @@
|
||||
2006-11-20 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
* gfortran.dg/volatile3.f90: Add conflict test.
|
||||
|
||||
2006-11-20 Bernhard Fischer <aldot@gcc.gnu.org>
|
||||
|
||||
PR fortran/24783
|
||||
|
@ -13,6 +13,7 @@ program volatile_test
|
||||
real, volatile,volatile :: r = 3. ! { dg-error "Duplicate VOLATILE attribute" }
|
||||
volatile :: l,n ! { dg-error "Duplicate VOLATILE attribute" }
|
||||
volatile ! { dg-error "Syntax error in VOLATILE statement" }
|
||||
volatile :: volatile_test ! { dg-error "PROGRAM attribute conflicts with VOLATILE attribute" }
|
||||
l = 4.0
|
||||
m = 3.0
|
||||
contains
|
||||
|
Loading…
Reference in New Issue
Block a user