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

            Bug ID: 90521
           Summary: error: names the constructor, not the type
           Product: gcc
           Version: 7.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: colton.wernet at linquest dot com
  Target Milestone: ---

Created attachment 46373
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46373&action=edit
Here is a snapshot of the terminal after calling make

Error building gdal third party library on Ubuntu 18.04. 
This build works without error on windows 10. 
When make is called the error: "names the constructor, not the type" is thrown
in several places preventing the build.

Here is one of the lines causing the error:

std::string::basic_string& assign(const std::string::basic_string& _str );

All the other lines causing the error have the basic_string type.
It has been noted that the error is coming from the basic_string type, when
::basic_string is removed form the line above, there is no longer an error but
this later on causes problems when the class is being used elsewhere. 

Considering this problem does not occur on windows I am reporting this as a bug
within gcc.

Reply via email to