stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-694) [HP aCC 6.15] bogus remark #3348
Date Sat, 12 Jan 2008 00:18:33 GMT
[HP aCC 6.15] bogus remark #3348
--------------------------------

                 Key: STDCXX-694
                 URL: https://issues.apache.org/jira/browse/STDCXX-694
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
         Environment: HP aCC 6.15/HP-UX
            Reporter: Martin Sebor
            Priority: Minor


The remark in the program below is obviously bogus:

$ cat t.cpp && aCC -V +w t.cpp
struct S { enum { X }; };
template <class T>
int foo () {
    const int X = 1;
    return X;
}

int main () { return foo<int>(); }
aCC: HP C/aC++ B3910B A.06.14 [Feb 22 2007]
"t.cpp", line 4: remark #3348-D: declaration hides constant "S::X" (declared at line 1)
      const int X = 1;
                ^
          detected during instantiation of "int foo<T>() [with T=int]" at line 8

ld: 92453-07 linker ld HP Itanium(R) B.12.43  IPF/IPF


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message