[Bug c++/57671] New: Compile Error: When declared a pointer const TYPE const *p ; (p is name of pointer)

vlad94009277 at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jun 21 15:36:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57671

            Bug ID: 57671
           Summary: Compile Error: When  declared a pointer const TYPE
                    const *p ; (p is name of pointer)
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vlad94009277 at gmail dot com

Compile Error: When declared the pointer const int const *p ;

Actual result:
               error: duplicate ‘const’
               const int const *p ;

expected result: 
               Must be declared the pointer p:


More information about the Gcc-bugs mailing list