If you include the header file cp/cp-tree.h in a plugin it will not compile
because cp/cp-tree.h includes "c-family/c-common.h" which cannot be found.
c-common.h is in the plugin directory but not under the c-family directory.

It looks like the makefile tries to flatten the directory structure when
putting headers in the plugin directory which is why c-common.h is in
plugin/include and
not plugin/include/c-family.  I don't know if cp/cp-tree.h should be changed or
if the Makefile should be changed.

Test case ia a plugin that includes cp/cp-tree.h.


-- 
           Summary: cp/cp-tree.h in plugin header does not work.
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: plugins
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sje at cup dot hp dot com


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

Reply via email to