fortran/
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Nov 2006 20:04:24 +0000 (20:04 +0000)
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Nov 2006 20:04:24 +0000 (20:04 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119025 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/volatile3.f90

index da741c6..a88071a 100644 (file)
@@ -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
index d867de9..7982920 100644 (file)
@@ -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);
index bda0624..046b230 100644 (file)
@@ -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
index 46619eb..966272e 100644 (file)
@@ -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